line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
# XXX: See bottom of file for Exception implementation |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
=head1 NAME |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
Catalyst::Exception - Catalyst Exception Class |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 SYNOPSIS |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Catalyst::Exception->throw( qq/Fatal exception/ ); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
See also L<Catalyst>. |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 DESCRIPTION |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
This is the Catalyst Exception class. |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 METHODS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head2 throw( $message ) |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head2 throw( message => $message ) |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head2 throw( error => $error ) |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
Throws a fatal exception. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head2 meta |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Provided by Moose |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 AUTHORS |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Catalyst Contributors, see Catalyst.pm |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 COPYRIGHT |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
This library is free software. You can redistribute it and/or modify |
39
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=cut |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
{ |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
use Moose; |
46
|
|
|
|
|
|
|
use namespace::clean -except => 'meta'; |
47
|
180
|
|
|
180
|
|
47808
|
|
|
180
|
|
|
|
|
40966631
|
|
|
180
|
|
|
|
|
1257
|
|
48
|
180
|
|
|
180
|
|
1298242
|
with 'Catalyst::Exception::Basic'; |
|
180
|
|
|
|
|
572493
|
|
|
180
|
|
|
|
|
1352
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
{ |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
use Moose; |
55
|
|
|
|
|
|
|
use namespace::clean -except => 'meta'; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
use vars qw[$CATALYST_EXCEPTION_CLASS]; |
58
|
180
|
|
|
180
|
|
149332
|
|
|
180
|
|
|
|
|
441
|
|
|
180
|
|
|
|
|
985
|
|
59
|
180
|
|
|
180
|
|
1137987
|
BEGIN { |
|
180
|
|
|
|
|
461
|
|
|
180
|
|
|
|
|
980
|
|
60
|
|
|
|
|
|
|
extends($CATALYST_EXCEPTION_CLASS || 'Catalyst::Exception::Base'); |
61
|
180
|
|
|
180
|
|
58765
|
} |
|
180
|
|
|
|
|
484
|
|
|
180
|
|
|
|
|
13102
|
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
64
|
180
|
|
100
|
180
|
|
2261
|
} |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
1; |