JSON::...:Error(3pm)
πΈ NAME πΈ
okay bestie, say hi to JSON::RPC::Common::Procedure::Return::Version_1_0::Error β it's a whole JSON-RPC 1.0 error class, and yes the name is a mouthful, we're not even gonna pretend otherwise π
β¨ VERSION β¨
this one's at version 0.11, periodt.
π SYNOPSIS π
like, here's the vibe in one line:
my $return_with_error = $call->return_error("foo");
that's it. that's the whole flex. π«Ά
π¦ DESCRIPTION π¦
okay so here's the tea β β JSON-RPC 1.0 literally does not specify what the hell goes in the error field. iconic of them honestly. chaotic. no rules, no notes, just vibes π
so, to make 1.0+2.0 server implementations easy, this class shows up as a compatibility layer. it's giving peacekeeper. it's giving bridge. it's giving "i got you bestie" π
now for the actual mechanics: inflating a string instantiates an error with an unset code and the string as the message. so the string you feed in? that's the message, no cap. the code stays unset, lowkey just hanging out, unassigned π
also go look at JSON::RPC::Common::Procedure::Return::Error β that's the see-also, iykyk π
π AUTHOR π
the mastermind behind this is Yuval Kogman <nothingmuch@woobling.org> β say thank you, fr fr π
π 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 yes, you can remix it, you can pass it around, you can do your little thing with it β same energy as Perl 5 itself π
and that's a wrap, bestie β¨ this page comes to you via perl v5.30.3, dated 2020-06-23, straight from the User Contributed Perl Documentation collection. mwah, go write some error returns ππ
π¦ 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