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

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

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

This class implements JavaScript RangeError objects for JE.

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

2022-11-19 perl v5.36.0