The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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

  my $data = $exception->data();

data

dump

  my $dump = $exception->dump();

The dump method returns a string representation of the underlying data.

explain

  my $explain = $exception->explain();

Returns a complete stack trace if the exception was thrown.

throw

  $exception->throw();

Throw error with object and message.