line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ABSTRACT: General Purpose Exception Class for Bubblegum |
2
|
|
|
|
|
|
|
package Bubblegum::Exception; |
3
|
|
|
|
|
|
|
|
4
|
5
|
|
|
5
|
|
54
|
use 5.10.0; |
|
5
|
|
|
|
|
18
|
|
|
5
|
|
|
|
|
196
|
|
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
5
|
|
22
|
use Moo; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
28
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
extends 'Throwable::Error'; |
9
|
|
|
|
|
|
|
|
10
|
5
|
|
|
5
|
|
4271
|
use Data::Dumper (); |
|
5
|
|
|
|
|
25520
|
|
|
5
|
|
|
|
|
127
|
|
11
|
5
|
|
|
5
|
|
35
|
use Scalar::Util (); |
|
5
|
|
|
|
|
6
|
|
|
5
|
|
|
|
|
555
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $VERSION = '0.45'; # VERSION |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub rethrow { |
16
|
0
|
|
|
0
|
0
|
|
die shift; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub dumper { |
20
|
0
|
|
|
0
|
0
|
|
local $Data::Dumper::Terse = 1; |
21
|
0
|
|
|
|
|
|
return Data::Dumper::Dumper(shift); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub caught { |
25
|
0
|
|
|
0
|
0
|
|
my($class, $e) = @_; |
26
|
0
|
0
|
|
|
|
|
return if ref $class; |
27
|
0
|
0
|
0
|
|
|
|
return unless Scalar::Util::blessed($e) |
28
|
|
|
|
|
|
|
&& UNIVERSAL::isa($e, $class); |
29
|
0
|
|
|
|
|
|
return $e; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |