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

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

πŸ’– JE::Object::Error::RangeError β€” the whole vibe πŸ’–

perl manual, section 3pm ✨ so this is the JE::Object::Error::RangeError page, bestie, and it's literally the class that makes JavaScript RangeError objects happen inside JE. πŸ¦‹


✨ NAME ✨

JE::Object::Error::RangeError β€” it's giving JavaScript RangeError object class. πŸŽ€


🌸 SYNOPSIS 🌸

okay so here's the whole flow, no cap:

use JE::Object::Error::RangeError;

# Somewhere in code called by an eval{}
die new JE::Object::Error::RangeError $global, "(Error message here)";

# Later:
$@->prop('message');  # error message
$@->prop('name');     # 'RangeError'
"$@";                 # 'RangeError: ' plus the error message

so like β€” you use it, you die with a fresh one somewhere inside code that an eval{} is watching πŸ‘€, and then afterwards $@ is your girl. Ask her for prop('message') and she hands you the error message. Ask for prop('name') and she says 'RangeError' πŸ’…. And if you just stringify her with "$@"? You get 'RangeError: ' plus the error message. iconic behaviour fr fr.


🫢 DESCRIPTION 🫢

This class implements JavaScript RangeError objects for JE. That's the whole job and she does it flawlessly, periodt. πŸ‘‘


πŸ’… METHODS πŸ’…

ngl the methods aren't listed here β€” go check JE::Types and JE::Object::Error. they're holding all the lore, iykyk. πŸ“š


πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, go say hi:

  • JE
  • JE::Types
  • JE::Object
  • JE::Object::Error

πŸŽ€ bestie reminder: this page is from perl v5.36.0, dated 2023-08-25, and it lives in the User Contributed Perl Documentation. mwah, go write some flawless error handling πŸ’–βœ¨πŸ«Ά
πŸ“¦ where this page comes from