JE::Ob...xError(3pm)

πŸ“¦
version 0.066 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

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 πŸ‘€

  • JE
  • JE::Types
  • JE::Object
  • JE::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