Myriad::Exception::Builder - applies Myriad::Exception::Base to an exception class
See Myriad::Exception for the rôle that defines the exception API.
Creates a new exception under the Myriad::Exception namespace.
This will be a class formed from the caller's class:
called from Myriad::*, would strip the Myriad:: prefix
Myriad::*
Myriad::
any other class will remain intact
e.g. Myriad::RPC when calling this would end up with classes under Myriad::Exception::RPC, but SomeCompany::Service::Example would get Myriad::Exception::SomeCompany::Service::Example as the exception base class.
SomeCompany::Service::Example
Takes the following parameters:
$name - the exception
$name
%args - extra details
%args
Details can currently include:
category
message
Returns the generated classname.
Deriv Group Services Ltd. DERIV@cpan.org.
DERIV@cpan.org
See "CONTRIBUTORS" in Myriad for full details.
Copyright Deriv Group Services Ltd 2020-2022. Licensed under the same terms as Perl itself.
To install Myriad, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Myriad
CPAN shell
perl -MCPAN -e shell install Myriad
For more information on module installation, please visit the detailed CPAN module installation guide.