Data::Object::Role::Throwable
Data-Object Throwable Role
use Data::Object::Class; with 'Data::Object::Role::Throwable';
Data::Object::Role::Throwable provides routines for operating on Perl 5 data objects which meet the criteria for being throwable.
This package implements the following methods.
throw(Str $arg1) : Object
The throw method throws an exception with the object and message.
$self->throw($message);
To install Data::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Object
CPAN shell
perl -MCPAN -e shell install Data::Object
For more information on module installation, please visit the detailed CPAN module installation guide.