line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::BambooHR::Exception; |
2
|
|
|
|
|
|
|
$WebService::BambooHR::Exception::VERSION = '0.04'; |
3
|
5
|
|
|
5
|
|
149
|
use 5.006; |
|
5
|
|
|
|
|
17
|
|
|
5
|
|
|
|
|
204
|
|
4
|
5
|
|
|
5
|
|
28
|
use Moo; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
36
|
|
5
|
|
|
|
|
|
|
with 'Throwable'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use overload |
8
|
5
|
|
|
|
|
47
|
q{""} => 'as_string', |
9
|
5
|
|
|
5
|
|
1726
|
fallback => 1; |
|
5
|
|
|
|
|
10
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has message => (is => 'ro'); |
12
|
|
|
|
|
|
|
has method => (is => 'ro'); |
13
|
|
|
|
|
|
|
has code => (is => 'ro'); |
14
|
|
|
|
|
|
|
has reason => (is => 'ro'); |
15
|
|
|
|
|
|
|
has filename => (is => 'ro'); |
16
|
|
|
|
|
|
|
has line_number => (is => 'ro'); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub as_string |
19
|
|
|
|
|
|
|
{ |
20
|
1
|
|
|
1
|
0
|
1653
|
my $self = shift; |
21
|
1
|
|
|
|
|
23
|
return $self->method.'(): ' |
22
|
|
|
|
|
|
|
.$self->message.' ('.$self->code.' '.$self->reason.') ' |
23
|
|
|
|
|
|
|
.'file '.$self->filename.' on line '.$self->line_number."\n"; |
24
|
|
|
|
|
|
|
; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |