JE::Object::Error::TypeError(3pm) | User Contributed Perl Documentation | JE::Object::Error::TypeError(3pm) |
JE::Object::Error::TypeError - JavaScript TypeError object class
use JE::Object::Error::TypeError; # Somewhere in code called by an eval{} die new JE::Object::Error::TypeError $global, "(Error message here)"; # Later: $@->prop('message'); # error message $@->prop('name'); # 'TypeError' "$@"; # 'TypeError: ' plus the error message
This class implements JavaScript TypeError objects for JE.
See JE::Types and JE::Object::Error.
2022-11-19 | perl v5.36.0 |