JSON::...eption(3pm)
β¨ 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.1or 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:
- email the author, or
- add the bug to
cpan-RT
please do one of them, don't just suffer in silence π
π₯ SEE ALSO π₯
perlβ yeah. justperl. the whole language. iconic honestly π
π AUTHOR π
Toru Yamaguchi <zigorou at cpan.org> β shoutout to the legend who wrote this π
π LICENSE AND COPYRIGHT π
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
- debian bookworm: libjson-pointer-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libjson-pointer-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libjson-pointer-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libjson-pointer-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libjson-pointer-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms