| 1 | package Perl::Critic::Exception; | ||
| 2 | |||
| 3 | 40 | ▶ | use 5.010001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 40 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 40 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 40 | our $VERSION = '1.156'; | |
| 8 | |||
| 9 | #----------------------------------------------------------------------------- | ||
| 10 | |||
| 11 | 40 | ▶ | use Exception::Class ( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 40 | 'Perl::Critic::Exception' => { | |
| 13 | isa => 'Exception::Class::Base', | ||
| 14 | description => 'A problem discovered by Perl::Critic.', | ||
| 15 | }, | ||
| 16 | 40 | ); | |
| 17 | |||
| 18 | 40 | ▶ | use Exporter 'import'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | #----------------------------------------------------------------------------- | ||
| 21 | |||
| 22 | 10 | ▶ | sub short_class_name { |
|
Subroutine
short_class_name: called CC=1 SCAR=0.0
Pod
documented
| |||
| 23 | 10 | my ( $self ) = @_; | |
| 24 | |||
| 25 | 10 | return substr ref $self, (length 'Perl::Critic') + 2; | |
| 26 | } | ||
| 27 | |||
| 28 | #----------------------------------------------------------------------------- | ||
| 29 | |||
| 30 | |||
| 31 | 40 | 1; | |
| 32 | |||
| 33 | __END__ | ||