| JE documentation | Contained in the JE distribution. |
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.
| JE documentation | Contained in the JE distribution. |
package JE::Object::Error::TypeError; our $VERSION = '0.54'; use strict; use warnings; our @ISA = 'JE::Object::Error'; require JE::Object::Error; require JE::String;
sub name { 'TypeError' } return "a true value";