From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

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

SYNOPSIS

# 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

DESCRIPTION

This class implements JavaScript TypeError objects for JE.

METHODS

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

SEE ALSO

JE
JE::Types
JE::Object
JE::Object::Error