line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Plack::Handler::Stomp::Exceptions; |
2
|
|
|
|
|
|
|
$Plack::Handler::Stomp::Exceptions::VERSION = '1.14'; |
3
|
|
|
|
|
|
|
{ |
4
|
|
|
|
|
|
|
$Plack::Handler::Stomp::Exceptions::DIST = 'Plack-Handler-Stomp'; |
5
|
|
|
|
|
|
|
} |
6
|
13
|
|
|
13
|
|
3749
|
use Net::Stomp::MooseHelpers::Exceptions; |
|
13
|
|
|
|
|
2178780
|
|
|
13
|
|
|
|
|
918
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: exception classes for Plack::Handler::Stomp |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
{ |
12
|
|
|
|
|
|
|
package Plack::Handler::Stomp::Exceptions::UnknownFrame; |
13
|
|
|
|
|
|
|
$Plack::Handler::Stomp::Exceptions::UnknownFrame::VERSION = '1.14'; |
14
|
|
|
|
|
|
|
{ |
15
|
|
|
|
|
|
|
$Plack::Handler::Stomp::Exceptions::UnknownFrame::DIST = 'Plack-Handler-Stomp'; |
16
|
|
|
|
|
|
|
} |
17
|
13
|
|
|
13
|
|
108
|
use Moose;with 'Throwable','Net::Stomp::MooseHelpers::Exceptions::Stringy'; |
|
13
|
|
|
|
|
27
|
|
|
13
|
|
|
|
|
78
|
|
18
|
13
|
|
|
13
|
|
75112
|
use namespace::autoclean; |
|
13
|
|
|
|
|
30
|
|
|
13
|
|
|
|
|
126
|
|
19
|
|
|
|
|
|
|
has frame => ( is => 'ro', required => 1 ); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub as_string { |
22
|
3
|
|
|
3
|
0
|
122
|
sprintf q{Received a STOMP frame we don't know how to handle (%s)}, |
23
|
|
|
|
|
|
|
shift->frame->command; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
{ |
29
|
|
|
|
|
|
|
package Plack::Handler::Stomp::Exceptions::AppError; |
30
|
|
|
|
|
|
|
$Plack::Handler::Stomp::Exceptions::AppError::VERSION = '1.14'; |
31
|
|
|
|
|
|
|
{ |
32
|
|
|
|
|
|
|
$Plack::Handler::Stomp::Exceptions::AppError::DIST = 'Plack-Handler-Stomp'; |
33
|
|
|
|
|
|
|
} |
34
|
13
|
|
|
13
|
|
17156
|
use Moose;with 'Throwable','Net::Stomp::MooseHelpers::Exceptions::Stringy'; |
|
13
|
|
|
|
|
33
|
|
|
13
|
|
|
|
|
62
|
|
35
|
13
|
|
|
13
|
|
72568
|
use namespace::autoclean; |
|
13
|
|
|
|
|
34
|
|
|
13
|
|
|
|
|
66
|
|
36
|
|
|
|
|
|
|
has '+previous_exception' => ( |
37
|
|
|
|
|
|
|
init_arg => 'app_error', |
38
|
|
|
|
|
|
|
); |
39
|
|
|
|
|
|
|
sub as_string { |
40
|
3
|
|
|
3
|
0
|
191
|
return 'The application died:'.$_[0]->previous_exception; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
{ |
46
|
|
|
|
|
|
|
package Plack::Handler::Stomp::Exceptions::OneShot; |
47
|
|
|
|
|
|
|
$Plack::Handler::Stomp::Exceptions::OneShot::VERSION = '1.14'; |
48
|
|
|
|
|
|
|
{ |
49
|
|
|
|
|
|
|
$Plack::Handler::Stomp::Exceptions::OneShot::DIST = 'Plack-Handler-Stomp'; |
50
|
|
|
|
|
|
|
} |
51
|
13
|
|
|
13
|
|
16531
|
use namespace::autoclean; |
|
13
|
|
|
|
|
27
|
|
|
13
|
|
|
|
|
44
|
|
52
|
13
|
|
|
13
|
|
632
|
use Moose;with 'Throwable'; |
|
13
|
|
|
|
|
22
|
|
|
13
|
|
|
|
|
51
|
|
53
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
54
|
|
|
|
|
|
|
} |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
__END__ |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=pod |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=encoding UTF-8 |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 NAME |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Plack::Handler::Stomp::Exceptions - exception classes for Plack::Handler::Stomp |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 VERSION |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
version 1.14 |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 DESCRIPTION |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This file defines the following exception classes: |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=over 4 |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=item C<Plack::Handler::Stomp::Exceptions::UnknownFrame> |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Thrown whenever we receive a frame we don't know how to handle; has a |
81
|
|
|
|
|
|
|
C<frame> attribute containing the frame in question. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=item C<Plack::Handler::Stomp::Exceptions::AppError> |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Thrown whenever the PSGI application dies; has a C<previous_exception> |
86
|
|
|
|
|
|
|
attribute containing the exception that the application threw. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=item C<Plack::Handler::Stomp::Exceptions::OneShot> |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Thrown to stop the C<run> loop after receiving a message, if |
91
|
|
|
|
|
|
|
C<one_shot> is true (see L<Plack::Handler::Stomp/run>). |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=back |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=head1 AUTHOR |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
This software is copyright (c) 2012 by Net-a-porter.com. |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
104
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=cut |