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
|
179
|
|
|
179
|
|
44051
|
|
|
179
|
|
|
|
|
34982307
|
|
|
179
|
|
|
|
|
1029
|
|
48
|
179
|
|
|
179
|
|
1096390
|
with 'Catalyst::Exception::Basic'; |
|
179
|
|
|
|
|
500580
|
|
|
179
|
|
|
|
|
1210
|
|
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
|
179
|
|
|
179
|
|
126209
|
|
|
179
|
|
|
|
|
467
|
|
|
179
|
|
|
|
|
884
|
|
59
|
179
|
|
|
179
|
|
935562
|
BEGIN { |
|
179
|
|
|
|
|
446
|
|
|
179
|
|
|
|
|
921
|
|
60
|
|
|
|
|
|
|
extends($CATALYST_EXCEPTION_CLASS || 'Catalyst::Exception::Base'); |
61
|
179
|
|
|
179
|
|
48777
|
} |
|
179
|
|
|
|
|
502
|
|
|
179
|
|
|
|
|
11533
|
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
64
|
179
|
|
100
|
179
|
|
2590
|
} |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
1; |