line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::DataClass::Exception; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
4227
|
use namespace::autoclean; |
|
8
|
|
|
|
|
109364
|
|
|
8
|
|
|
|
|
28
|
|
4
|
|
|
|
|
|
|
|
5
|
8
|
|
|
8
|
|
4016
|
use Unexpected::Functions qw( has_exception ); |
|
8
|
|
|
|
|
49831
|
|
|
8
|
|
|
|
|
42
|
|
6
|
8
|
|
|
8
|
|
5269
|
use Unexpected::Types qw( Str ); |
|
8
|
|
|
|
|
559808
|
|
|
8
|
|
|
|
|
81
|
|
7
|
8
|
|
|
8
|
|
8922
|
use Moo; |
|
8
|
|
|
|
|
46397
|
|
|
8
|
|
|
|
|
40
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
extends q(Unexpected); |
10
|
|
|
|
|
|
|
with q(Unexpected::TraitFor::ErrorLeader); |
11
|
|
|
|
|
|
|
with q(Unexpected::TraitFor::ExceptionClasses); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
my $class = __PACKAGE__; $class->ignore_class( 'File::DataClass::IO' ); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has_exception $class; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
has_exception 'NothingUpdated' => parents => [ $class ], |
18
|
|
|
|
|
|
|
error => 'Nothing updated'; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
has_exception 'PathAlreadyExists' => parents => [ $class ], |
21
|
|
|
|
|
|
|
error => 'Path [_1] already exists'; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
has_exception 'PathNotFound' => parents => [ $class ], |
24
|
|
|
|
|
|
|
error => 'Path [_1] not found'; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
has_exception 'InvocantUndefined' => parents => [ $class ], |
27
|
|
|
|
|
|
|
error => 'Method [_1] cannot call with undefined invocant'; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
has_exception 'RecordAlreadyExists' => parents => [ $class ], |
30
|
|
|
|
|
|
|
error => 'File [_1] record [_2] already exists'; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
has_exception 'RecordNotFound' => parents => [ $class ], |
33
|
|
|
|
|
|
|
error => 'File [_1] record [_2] does not exist'; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
has '+class' => default => $class; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
has 'out' => is => 'ro', isa => Str, default => q(); |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |