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