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

REQUIRED METHODS

28   as_string
29   throw
30   rethrow

METHODS

32   meta
33       Provided by Moose
34

SEE ALSO

36       Catalyst
37       Catalyst::Exception
38

AUTHORS

40       Catalyst Contributors, see Catalyst.pm
41
43       This library is free software. You can redistribute it and/or modify it
44       under the same terms as Perl itself.
45
46
47
48perl v5.36.0                      2023-01-20 Catalyst::Exception::Interface(3)
Impressum