| 1 | package App::CmdDispatch::Exception; | ||
| 2 | |||
| 3 | 14 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 14 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 14 | our $VERSION = '0.44'; | |
| 7 | |||
| 8 | sub new | ||
| 9 | 7 | ▶ | { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 10 | 7 | my ($class, @args) = @_; | |
| 11 | |||
| 12 | 7 | return bless { args => \@args }, $class; | |
| 13 | } | ||
| 14 | |||
| 15 | sub why | ||
| 16 | 0 | ▶ | { |
|
Subroutine
why: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 17 | 0 | my ($self) = @_; | |
| 18 | 0 | return __PACKAGE__; | |
| 19 | } | ||
| 20 | |||
| 21 | { | ||
| 22 | package App::CmdDispatch::Exception::UnknownCommand; | ||
| 23 | 14 | our @ISA = 'App::CmdDispatch::Exception'; | |
| 24 | sub why | ||
| 25 | 1 | ▶ | { |
|
Subroutine
why: called CC=1 SCAR=0.0
| |||
| 26 | 1 | my ($self) = @_; | |
| 27 | 1 | return "Unrecognized command '$self->{args}->[0]'"; | |
| 28 | } | ||
| 29 | } | ||
| 30 | |||
| 31 | { | ||
| 32 | 14 | package App::CmdDispatch::Exception::MissingCommand; | |
| 33 | 14 | our @ISA = 'App::CmdDispatch::Exception'; | |
| 34 | sub why | ||
| 35 | 2 | ▶ | { |
|
Subroutine
why: called CC=1 SCAR=0.0
| |||
| 36 | 2 | my ($self) = @_; | |
| 37 | 2 | return "Missing command"; | |
| 38 | } | ||
| 39 | } | ||
| 40 | 14 | 1; | |
| 41 | __END__ | ||