line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package REST::Cypher::Exception; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$REST::Cypher::Exception::DIST = 'REST-Cypher'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
# ABSTRACT base class for exception handling |
6
|
|
|
|
|
|
|
$REST::Cypher::Exception::VERSION = '0.0.4'; |
7
|
3
|
|
|
3
|
|
37310
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
153
|
|
8
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
75
|
|
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
3
|
|
2129
|
use Moo; |
|
3
|
|
|
|
|
15900
|
|
|
3
|
|
|
|
|
14
|
|
11
|
|
|
|
|
|
|
with 'Throwable'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
use overload |
14
|
3
|
|
|
|
|
29
|
q{""} => 'as_string', |
15
|
3
|
|
|
3
|
|
4349
|
fallback => 1; |
|
3
|
|
|
|
|
6
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub as_string { |
18
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
19
|
0
|
|
|
|
|
|
return $self->message; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=pod |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=encoding UTF-8 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
REST::Cypher::Exception |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 VERSION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
version 0.0.4 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head2 as_string |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
This method in L<REST::Cypher::Exception> allows easy stringification of |
42
|
|
|
|
|
|
|
thrown exceptions. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
It returns the current value of I<message>. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 AUTHOR |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Chisel <chisel@chizography.net> |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Chisel Wright. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
55
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |