JSON::...:Error(3pm)
π JSON::RPC::Common::Procedure::Return::Version_1_1::Error π
okay bestie, so this is a page from the User Contributed Perl Documentation, and the module we're obsessing over today is JSON::RPC::Common::Procedure::Return::Version_1_1::Error. say it with me. it's a mouthful but we love her for it π
β¨ NAME β¨
JSON::RPC::Common::Procedure::Return::Version_1_1::Error β the JSON-RPC 1.1 error class. that's it, that's the whole vibe. she's an error class and she knows it π
π VERSION π
version 0.11. locked in, no cap. π«Ά
πΈ SYNOPSIS πΈ
here's how you'd actually summon her, in all her glory:
my $return_with_error = $call->return_error("foo");
that's it. that's the whole flex. β¨
π¦ DESCRIPTION π¦
so here's the tea, fr fr: this class implements 1.1 error objects. periodt.
code and message? mandatory. not optional, not "maybe later", mandatory. you show up with both or you don't show up at all. π
and here's the lil plot twist for you, iykyk: the data field is named error in the deflated version, and name is set to JSONRPCError. how exciting. π honestly, iconic naming choices, we stan a confusing-but-consistent queen.
also, go read JSON::RPC::Common::Procedure::Return::Error β she's the mothership, this one's basically her daughter. SEE ALSO energy, but make it a sentence. π§
π AUTHOR π
Yuval Kogman <nothingmuch@woobling.org> β the main character who brought her into this world. respect. π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2014 by Yuval Kogman and others.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so go ahead, remix her, she's free β just keep the same terms as Perl 5 itself, bestie. π
and that's the whole page, no notes. 10/10, would read again π
okay so that was written for perl v5.30.3, dated 2020-06-23, straight from the JSON::...:Error(3pm) of it all. mwah. π β¨ π
π¦ where this page comes from
- debian bookworm: libjson-rpc-common-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libjson-rpc-common-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libjson-rpc-common-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libjson-rpc-common-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libjson-rpc-common-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libjson-rpc-common-perl 0.11-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