1Catalyst::Exception::InUtseerrfaCcoen(t3r)ibuted Perl DoCcautmaelnytsatt:i:oEnxception::Interface(3)
2
3
4

NAME

6       Catalyst::Exception::Interface - Role defining the interface for
7       Catalyst exceptions
8

SYNOPSIS

10          package My::Catalyst::Like::Exception;
11          use Moose;
12          use namespace::clean -except => 'meta';
13
14          with 'Catalyst::Exception::Interface';
15
16          # This comprises the required interface.
17          sub as_string { 'the exception text for stringification' }
18          sub throw { shift; die @_ }
19          sub rethrow { shift; die @_ }
20

DESCRIPTION

22       This is a role for the required interface for Catalyst exceptions.
23
24       It ensures that all exceptions follow the expected interface, and adds
25       overloading for stringification when composed onto a class.
26
27       Note that if you compose this role onto another role, that role must
28       use MooseX::Role::WithOverloading.
29

REQUIRED METHODS

31   as_string
32   throw
33   rethrow

METHODS

35   meta
36       Provided by Moose
37

SEE ALSO

39       Catalyst
40       Catalyst::Exception
41

AUTHORS

43       Catalyst Contributors, see Catalyst.pm
44
46       This library is free software. You can redistribute it and/or modify it
47       under the same terms as Perl itself.
48
49
50
51perl v5.34.0                      2021-07-22 Catalyst::Exception::Interface(3)
Impressum