line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::CmdDispatch::Exception; |
2
|
|
|
|
|
|
|
|
3
|
14
|
|
|
14
|
|
95
|
use warnings; |
|
14
|
|
|
|
|
26
|
|
|
14
|
|
|
|
|
430
|
|
4
|
14
|
|
|
14
|
|
72
|
use strict; |
|
14
|
|
|
|
|
27
|
|
|
14
|
|
|
|
|
3332
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.44'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new |
9
|
|
|
|
|
|
|
{ |
10
|
7
|
|
|
7
|
1
|
15
|
my ($class, @args) = @_; |
11
|
|
|
|
|
|
|
|
12
|
7
|
|
|
|
|
51
|
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
|
|
3
|
my ($self) = @_; |
27
|
1
|
|
|
|
|
7
|
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
|
|
4
|
my ($self) = @_; |
37
|
2
|
|
|
|
|
11
|
return "Missing command"; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
__END__ |