NAME

Data::Object::Role::Catchable

ABSTRACT

Data-Object Catchable Role

SYNOPSIS

use Data::Object::Class;

with 'Data::Object::Role::Catchable';

DESCRIPTION

This role provides functionality for catching thrown exceptions.

METHODS

This package implements the following methods.

catch

catch(Object $arg1, ClassName $arg2) : Int

Returns truthy if the objects passed are of the same kind.

catch example
my $catch = $self->catch($object, 'App::Exception');

AUTHOR

Al Newkirk, awncorp@cpan.org

LICENSE

Copyright (C) 2011-2019, Al Newkirk, et al.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

STATUS

SEE ALSO

To get the most out of this distribution, consider reading the following:

Data::Object::Class

Data::Object::Role

Data::Object::Rule

Data::Object::Library

Data::Object::Signatures

Contributing

GitHub