JE::Ob...RIError(3pm)
π JE::Object::Error::URIError(3pm) π
okay bestie, so this is a page from the User Contributed Perl Documentation, and it's literally all about JE::Object::Error::URIError, which is a whole β¨ JavaScript URIError object class β¨. it's short, it's sweet, and it's giving "I do one thing and I slay at it" energy. let's get into it π«Ά
π NAME π
JE::Object::Error::URIError β the JavaScript URIError object class, fr fr π
β¨ SYNOPSIS β¨
here's the vibe, copy-paste ready, no cap:
use JE::Object::Error::URIError;
# Somewhere in code called by an eval{}
die new JE::Object::Error::URIError $global, "(Error message here)";
# Later:
$@->prop('message'); # error message
$@->prop('name'); # 'URIError'
"$@"; # 'URIError: ' plus the error message
so like, you use the thing, then somewhere deep in code that's getting run by an eval{}, you die a brand new JE::Object::Error::URIError with $global and your "(Error message here)". iconic π
then later, when you're picking up the pieces in $@:
$@->prop('message')grabs the error message π$@->prop('name')gives you back'URIError'π"$@"stringifies to'URIError: 'plus the error message, so the whole thing reads like a little announcement πΈ
π¦ DESCRIPTION π¦
This class implements JavaScript URIError objects for JE. that's the whole description, bestie β it does exactly what it says on the tin, and honestly? main character energy. π
π METHODS π
go check out JE::Types and JE::Object::Error β that's where the method deets live, iykyk. π
π SEE ALSO π
JEJE::TypesJE::ObjectJE::Object::Error
and that's the whole page, no crumbs left π this little legend is documented as perl v5.36.0, dated 2023-08-25, and it came to you courtesy of the User Contributed Perl Documentation. 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