| 1 | package PerlActor::Command::Unknown; | ||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 1 | ▶ | use base 'PerlActor::Command'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use PerlActor::Exception::CommandNotFound; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | #=============================================================================================== | ||
| 9 | # Public Methods | ||
| 10 | #=============================================================================================== | ||
| 11 | |||
| 12 | sub execute | ||
| 13 | 1 | ▶ | { |
|
Subroutine
execute: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 1 | my $self = shift; | |
| 15 | 1 | my $error = $self->getParam(0); | |
| 16 | 1 | throw PerlActor::Exception::CommandNotFound("unknown or invalid command: $error"); | |
| 17 | } | ||
| 18 | |||
| 19 | #=============================================================================================== | ||
| 20 | # Protected Methods - Don't even think about calling these from outside the class. | ||
| 21 | #=============================================================================================== | ||
| 22 | |||
| 23 | # Keep Perl happy. | ||
| 24 | 1 | 1; | |