DOKK / manpages / debian 10 / libje-perl / JE::Object::Error::ReferenceError.3pm.en
JE::Object::Error::ReferenceError(3pm) User Contributed Perl Documentation JE::Object::Error::ReferenceError(3pm)

JE::Object::Error::ReferenceError - JavaScript ReferenceError object class

  use JE::Object::Error::ReferenceError;
  # Somewhere in code called by an eval{}
  die new JE::Object::Error::ReferenceError $global,
          "(Error message here)";
  # Later:
  $@->prop('message');  # error message
  $@->prop('name');     # 'ReferenceError'
  "$@";                 # 'ReferenceError: ' plus the error message

This class implements JavaScript ReferenceError objects for JE.

See JE::Types and JE::Object::Error.

2014-10-20 perl v5.20.2