JSON::...eption(3pm)

πŸ“¦
version 0.07 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ JSON::...eption πŸ’–

ok so bestie, welcome to JSON::Pointer::Exception β€” the manual page for it, anyway. It's JSON::Pointer::Exception(3pm), a Perl module doc, and we are gonna get you so familiar with it. sit down, hydrate, let's go 🫢


🌸 NAME 🌸

JSON::Pointer::Exception β€” it's the exception class for JSON::Pointer. yeah. that's the whole vibe. it's the thing that gets thrown when pointer stuff goes sideways πŸ’…


πŸŽ€ VERSION πŸŽ€

This document describes JSON::Pointer::Exception version 0.07. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

ok so… this section is empty in the original. like, nothing here. no code block, no nothing. not me pointing at a blank space but that's literally what's in the source πŸ™ˆ so we move.


πŸ’œ DESCRIPTION πŸ’œ

also empty, bestie 😭 the original just has the heading and then keeps it moving. iconic minimalism honestly. no cap, there's nothing to report here.


πŸ‘‘ METHODS πŸ‘‘

here's the good stuff. the actual moves this class can do ✨

⭐ new(%opts) : JSON::Pointer::Exception

constructor energy. you call it with %opts and it hands you back a JSON::Pointer::Exception object, main character of the whole file πŸ’–

⭐ throw(%opts)

the dramatic exit. call it with %opts and it throws. it's giving "we're done here" πŸ’…

⭐ code :Int

gives you back an Int β€” the error code. a number. very demure, very mindful πŸ”’

⭐ context :JSON::Pointer::Context

hands you back a JSON::Pointer::Context β€” the context object so you know what was going on when things went off the rails 🧚

⭐ to_string :Str

turns the whole thing into a Str for you. stringified. ready to print, ready to log, ready to cry over 🌸


🌈 CONSTANTS 🌈

two lil constants, both absolute icons πŸ‘‘

⭐ ERROR_INVALID_POINTER_SYNTAX

the "your pointer syntax is not it" constant πŸ”₯

⭐ ERROR_POINTER_REFERENCES_NON_EXISTENT_VALUE

the "your pointer is pointing at something that does not exist, bestie" constant πŸ’€


πŸ“ DEPENDENCIES πŸ“

  • Perl 5.8.1 or later. that's it. that's the list 🫢

πŸ’€ BUGS πŸ’€

ok real talk β€” quoting the vibe here: all complex software has bugs lurking in it, and this module is no exception. 😭 (get it. exception. I'm so sorry.)

so if you find a bug, you've got two options and both are valid:

  1. email the author, or
  2. add the bug to cpan-RT

please do one of them, don't just suffer in silence πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯

  • perl β€” yeah. just perl. the whole language. iconic honestly πŸ‘‘

πŸ’– AUTHOR πŸ’–

Toru Yamaguchi <zigorou at cpan.org> β€” shoutout to the legend who wrote this πŸŽ€


Copyright (c) 2013, Toru Yamaguchi. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay πŸ’…


ok that's the whole page, bestie. go forth and catch your exceptions 🫢✨

perl v5.34.0 Β· 2022-06-15 Β· mwah πŸ’‹ that's a wrap on JSON::...eption(3pm), love u, bye πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from