JSON::...:Error(3pm)

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

✨ NAME ✨

JSON::RPC::Common::Procedure::Return::Version_2_0::Error β€” bestie, it's the JSON-RPC 2.0 error class πŸ’… (this lives in the JSON::...:Error(3pm) manual page, iykyk)


🌸 VERSION 🌸

version 0.11


πŸŽ€ SYNOPSIS πŸŽ€

my $return_with_error = $call->return_error("foo");

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this class is the one that implements 2.0 error objects. That's its whole thing. Main character energy fr fr πŸ‘‘

"code" and "message" are mandatory β€” like, you literally cannot skip them, they're not optional, no cap 🚨

Also go look at JSON::RPC::Common::Procedure::Return::Error for the bigger picture 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Yuval Kogman <nothingmuch@woobling.org> πŸ’–


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. Slay, it's free, go wild πŸŽ€


Sign-off time bestie: this whole thing is perl v5.30.3, dated 2020-06-23, and it's the JSON::...:Error(3pm) page. Periodt πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from