1Catalyst::Exception::BaUssiecr(3C)ontributed Perl DocumeCnattaatliyosnt::Exception::Basic(3)
2
3
4
6 Catalyst::Exception::Basic - Basic Catalyst Exception Role
7
9 package My::Exception;
10 use Moose;
11 use namespace::clean -except => 'meta';
12
13 with 'Catalyst::Exception::Basic';
14
15 # Elsewhere..
16 My::Exception->throw( qq/Fatal exception/ );
17
18 See also Catalyst and Catalyst::Exception.
19
21 This is the basic Catalyst Exception role which implements all of
22 Catalyst::Exception::Interface.
23
25 message
26 Holds the exception message.
27
29 as_string
30 Stringifies the exception's message attribute. Called when the object
31 is stringified by overloading.
32
33 throw( $message )
34 throw( message => $message )
35 throw( error => $error )
36 Throws a fatal exception.
37
38 rethrow( $exception )
39 Rethrows a caught exception.
40
41 meta
42 Provided by Moose
43
45 Catalyst Contributors, see Catalyst.pm
46
48 This library is free software. You can redistribute it and/or modify it
49 under the same terms as Perl itself.
50
51
52
53perl v5.32.0 2020-07-28 Catalyst::Exception::Basic(3)