JE::Ob...eError(3pm)
π JE::Object::Error::TypeError β bestie edition π
okay so this is JE::Object::Error::TypeError, straight outta the User Contributed Perl Documentation, and it's literally the class that makes JavaScript TypeError objects happen in JE. no cap. β¨
β¨ NAME β¨
JE::Object::Error::TypeError β it's giving JavaScript TypeError object class π
πΈ SYNOPSIS πΈ
like, here's the whole vibe in code, copy it exactly bestie:
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
so you die with a fresh JE::Object::Error::TypeError, passing it $global and your message, and then later you can go grab message and name off it with ->prop(...), or just stringify the whole thing with "$@" and it hands you 'TypeError: ' plus the error message. the way that just works?? π¦
π DESCRIPTION π
this class implements JavaScript TypeError objects for JE. that's the whole job. iconic behavior honestly. π
π«Ά METHODS π«Ά
okay so the methods aren't listed here, they're over in the other docs β go peek at JE::Types and JE::Object::Error. that's where the actual deets live, iykyk π
β SEE ALSO β
JEJE::TypesJE::ObjectJE::Object::Error
ngl the "SEE ALSO" section is just the friend group of modules that this one hangs out with. go say hi. they're all lovely. π
and that's the whole page, bestie β no crumbs left. this one shipped as part of perl v5.36.0, dated 2023-08-25, in the User Contributed Perl Documentation. slay, periodt πβ¨π
π¦ where this page comes from
- debian trixie: libje-perl 0.066-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libje-perl 0.066-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libje-perl 0.066-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libje-perl 0.066-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms