JE::Ob...ceError(3pm)
π JE::Object::Error::ReferenceError β the manual page, bestie edition π
okay so real quick, this is from the User Contributed Perl Documentation, and the page is literally called JE::Ob...ceError(3pm) because someone's terminal was not beating the truncation allegations. we're talking about JE::Object::Error::ReferenceError today and honestly? she's niche but she's important. π¦
β¨ NAME β¨
JE::Object::Error::ReferenceError β the JavaScript ReferenceError object class. that's it, that's the name, no cap. π
β¨ SYNOPSIS β¨
here's the vibe, in code:
use JE::Object::Error::ReferenceError;
# Somewhere in code called by an eval{}
die new JE::Object::Error::ReferenceError $global,
"(Error message here)";
# Later:
$@->prop('message'); # error message
$@->prop('name'); # 'ReferenceError'
"$@"; # 'ReferenceError: ' plus the error message
so you use the class, you die with a fresh one of these bad boys passing in $global and your error message, and then later you can poke at it β grab the message, grab the name (spoiler: it's 'ReferenceError' π), or just stringify the whole thing with "$@" and get 'ReferenceError: ' stitched onto the front of your message. iconic behaviour, honestly. β¨
β¨ DESCRIPTION β¨
this class implements JavaScript ReferenceError objects for JE. that's the whole job and she does it well. π«Ά
β¨ METHODS β¨
not gonna reinvent the wheel here β the methods live in JE::Types and JE::Object::Error. go read those, bestie, they got you. π
β¨ SEE ALSO β¨
the whole friend group, in order:
JEJE::TypesJE::ObjectJE::Object::Error
lowkey a tiny page but highkey essential if you're out here catching reference errors in JE. don't skip the SEE ALSO, that's where the lore is. πΈ
and that's the tea! this page came to you from perl v5.36.0, dated 2023-08-25, under the JE::Ob...ceError(3pm) title (truncated with love π). go forth and reference-error responsibly, bestie. πβ¨π
π¦ 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