Data::Object::Exception
Data-Object Exception Class
use Data::Object::Exception; my $exception = Data::Object::Exception->new; $exception->throw('Something went wrong');
Data::Object::Exception provides functionality for creating, throwing, catching, and introspecting exception objects.
This package implements the following methods.
my $data = $exception->data();
data
my $dump = $exception->dump();
The dump method returns a string representation of the underlying data.
my $explain = $exception->explain();
Returns a complete stack trace if the exception was thrown.
$exception->throw();
Throw error with object and 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.