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

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

πŸ’– JE::Object::Error::TypeError β€” bestie edition πŸ’–

okay so this is JE::Object::Error::TypeError, straight outta the User Contributed Perl Documentation, and it's literally the class that makes JavaScript TypeError objects happen in JE. no cap. ✨


✨ NAME ✨

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


🌸 SYNOPSIS 🌸

like, here's the whole vibe in code, copy it exactly bestie:

use JE::Object::Error::TypeError;

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

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

so you die with a fresh JE::Object::Error::TypeError, passing it $global and your message, and then later you can go grab message and name off it with ->prop(...), or just stringify the whole thing with "$@" and it hands you 'TypeError: ' plus the error message. the way that just works?? πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

this class implements JavaScript TypeError objects for JE. that's the whole job. iconic behavior honestly. πŸ‘‘


🫢 METHODS 🫢

okay so the methods aren't listed here, they're over in the other docs β€” go peek at JE::Types and JE::Object::Error. that's where the actual deets live, iykyk πŸ’œ


⭐ SEE ALSO ⭐

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

ngl the "SEE ALSO" section is just the friend group of modules that this one hangs out with. go say hi. they're all lovely. 🌈

and that's the whole page, bestie β€” no crumbs left. this one shipped as part of perl v5.36.0, dated 2023-08-25, in the User Contributed Perl Documentation. slay, periodt πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from