| 1 | package App::CLI::Extension::Exception; | ||
| 2 | |||
| 3 | =pod | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | App::CLI::Extension::Exception - for App::CLI exception module | ||
| 8 | |||
| 9 | =head1 VERSION | ||
| 10 | |||
| 11 | 1.421 | ||
| 12 | |||
| 13 | =cut | ||
| 14 | |||
| 15 | 18 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 18 | ▶ | use base qw(Error::Simple); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | 18 | our $VERSION = '1.421'; | |
| 19 | |||
| 20 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 21 | |||
| 22 | 0 | my($class, $message) = @_; | |
| 23 | 0 | chomp $message; | |
| 24 | |||
| 25 | #local $Error::Depth = $Error::Depth + 1; | ||
| 26 | 0 | local $Error::Depth = $Error::Depth + 2; | |
| 27 | 0 | local $Error::Debug = 1; | |
| 28 | 0 | my $self = $class->SUPER::new($message); | |
| 29 | |||
| 30 | 0 | return $self; | |
| 31 | } | ||
| 32 | |||
| 33 | 18 | 1; | |
| 34 | |||
| 35 | __END__ | ||