| 1 | =head1 NAME | ||||||||||
| 2 | |||||||||||
| 3 | Pipeline::Config::Error - base Error class for this project. | ||||||||||
| 4 | |||||||||||
| 5 | =head1 SYNOPSIS | ||||||||||
| 6 | |||||||||||
| 7 | # see Error.pm | ||||||||||
| 8 | |||||||||||
| 9 | =cut | ||||||||||
| 10 | |||||||||||
| 11 | package Pipeline::Config::Error; | ||||||||||
| 12 | |||||||||||
| 13 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 1 | ▶ | use warnings::register; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | |||||||||||
| 16 | 1 | ▶ | use base qw( Error ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | |||||||||||
| 18 | 1 | our $VERSION = ((require Pipeline::Config), $Pipeline::Config::VERSION)[1]; | |||||||||
| 19 | 1 | our $REVISION = (split(/ /, ' $Revision: 1.2 $ '))[2]; | |||||||||
| 20 | |||||||||||
| 21 | 4 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=7.6
Pod
documented
| |||||||||||
| 22 | 4 | my $class = shift; | |||||||||
| 23 | 4 | local $Error::Depth = $Error::Depth + 1; | |||||||||
| 24 | 4 | ▶ | return $class->SUPER::new( -text => shift ) if (scalar(@_) == 1); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | 0 | return $class->SUPER::new( @_ ); | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 1 | 1; | |||||||||
| 29 | |||||||||||
| 30 | __END__ | ||||||||||