JE::Ob...xError(3pm)
JE::Object::Error::SyntaxError π β¨
okay bestie, welcome to the User Contributed Perl Documentation corner of the manual, section 3pm β this is where JE::Object::Error::SyntaxError lives, and yes, she's the JavaScript SyntaxError object class for JE. iconic behaviour only. π
β¨ NAME β¨
JE::Object::Error::SyntaxError β the JavaScript SyntaxError object class. that's her. that's the whole job. π
πΈ SYNOPSIS πΈ
use JE::Object::Error::SyntaxError;
# Somewhere in code called by an eval{}
die new JE::Object::Error::SyntaxError $global, "(Error message here)";
# Later:
$@->prop('message'); # error message
$@->prop('name'); # 'SyntaxError'
"$@"; # 'SyntaxError: ' plus the error message
so like, you use her, you die her into existence inside something an eval{} is calling (with your $global and your message string), and then later you can peek at $@ and pull the 'message' prop, pull the 'name' prop which is literally 'SyntaxError', or just stringify the whole thing and get 'SyntaxError: ' glued onto your error message. slay. π¦
π DESCRIPTION π
this class implements JavaScript SyntaxError objects for JE. that's it, that's the vibe, no cap. β¨
π«Ά METHODS π«Ά
bestie, the methods aren't listed here β go look at JE::Types and JE::Object::Error, they've got you. π
π SEE ALSO π
JEJE::TypesJE::ObjectJE::Object::Error
like, read them. iykyk. π
mwah π this page came to you courtesy of perl v5.36.0, dated 2023-08-25, and it's filed under JE::Ob...xError(3pm) because apparently even manpage titles need a little mystery. go forth and catch them syntax errors, main character. πβ
π¦ 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