Dancer::RPCPlugin::ErrorResponse - Interface to pass error-responses without knowlage of the protocol
use Dancer::RPCPlugin::ErrorResponse; sub handle_rpc_call { ... return error_response( error_code => 42, error_message => 'That went belly-up', ); }
Factory function that retuns an instantiated Dancer::RPCPlugin::ErrorResponse.
An instance or an exception from Params::ValidationCompiler.
Getter for the error_code attribute.
error_code
Getter for the error_message attribute.
error_message
Getter for the error_data attribute.
error_data
Returns a data-structure for the use in the error field of a jsonrpc response.
error
Returns a data-structure for the use as a fault response in XMLRPC.
fault
Returns a data-structure like the error-field in a JSONRPC2 error response.
error-field
(c) MMXVII - Abe Timmerman <abetim@cpan.org>
To install Dancer::Plugin::RPC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::RPC
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::RPC
For more information on module installation, please visit the detailed CPAN module installation guide.