NAME

Data::Object::Role::Throwable

ABSTRACT

Data-Object Throwable Role

SYNOPSIS

use Data::Object::Class;

with 'Data::Object::Role::Throwable';

DESCRIPTION

Data::Object::Role::Throwable provides routines for operating on Perl 5 data objects which meet the criteria for being throwable.

METHODS

This package implements the following methods.

throw

throw(Str $arg1) : Object

The throw method throws an exception with the object and message.

throw example
$self->throw($message);