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

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

πŸ’– 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 🌟

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