line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::CmdDispatch::Exception; |
2
|
|
|
|
|
|
|
|
3
|
14
|
|
|
14
|
|
64
|
use warnings; |
|
14
|
|
|
|
|
44
|
|
|
14
|
|
|
|
|
350
|
|
4
|
14
|
|
|
14
|
|
66
|
use strict; |
|
14
|
|
|
|
|
22
|
|
|
14
|
|
|
|
|
3219
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.43'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new |
9
|
|
|
|
|
|
|
{ |
10
|
7
|
|
|
7
|
1
|
13
|
my ($class, @args) = @_; |
11
|
|
|
|
|
|
|
|
12
|
7
|
|
|
|
|
64
|
return bless { args => \@args }, $class; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub why |
16
|
|
|
|
|
|
|
{ |
17
|
0
|
|
|
0
|
1
|
0
|
my ($self) = @_; |
18
|
0
|
|
|
|
|
0
|
return __PACKAGE__; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
{ |
22
|
|
|
|
|
|
|
package App::CmdDispatch::Exception::UnknownCommand; |
23
|
|
|
|
|
|
|
our @ISA = 'App::CmdDispatch::Exception'; |
24
|
|
|
|
|
|
|
sub why |
25
|
|
|
|
|
|
|
{ |
26
|
1
|
|
|
1
|
|
2
|
my ($self) = @_; |
27
|
1
|
|
|
|
|
10
|
return "Unrecognized command '$self->{args}->[0]'"; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
{ |
32
|
|
|
|
|
|
|
package App::CmdDispatch::Exception::MissingCommand; |
33
|
|
|
|
|
|
|
our @ISA = 'App::CmdDispatch::Exception'; |
34
|
|
|
|
|
|
|
sub why |
35
|
|
|
|
|
|
|
{ |
36
|
2
|
|
|
2
|
|
5
|
my ($self) = @_; |
37
|
2
|
|
|
|
|
7
|
return "Missing command"; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
__END__ |