| 1 | package Pipeline::Error::Construction; | ||
| 2 | |||
| 3 | 16 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 16 | ▶ | use Error; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 16 | ▶ | use base qw( Error ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 16 | our $VERSION = "3.12"; | |
| 9 | |||
| 10 | 2 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 11 | 2 | my $class = shift; | |
| 12 | |||
| 13 | 2 | my $caller = caller(1); | |
| 14 | 2 | my $text = "cannot create object of type $caller"; | |
| 15 | |||
| 16 | 2 | local $Error::Depth = $Error::Depth + 1; | |
| 17 | 2 | local $Error::Debug = 1; # Enables storing of stacktrace | |
| 18 | |||
| 19 | 2 | $class->SUPER::new(-text => $text, @_); | |
| 20 | } | ||
| 21 | |||
| 22 | 16 | 1; | |
| 23 | |||
| 24 | |||
| 25 | =head1 NAME | ||
| 26 | |||
| 27 | Pipeline::Error::Construction - exception thrown during object construction failure | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | use Pipeline::Error::Construction; | ||
| 32 | |||
| 33 | throw Pipeline::Error::Construction; | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | C<Pipeline::Error::Construction> inherits from C<Error> and will be thrown by | ||
| 38 | any constructor in the Pipeline module that fails to properly assemble itself. | ||
| 39 | |||
| 40 | =head1 SEE ALSO | ||
| 41 | |||
| 42 | C<Pipeline::Error::Abstract> C<Error> | ||
| 43 | |||
| 44 | =head1 AUTHOR | ||
| 45 | |||
| 46 | James A. Duncan <jduncan@fotango.com> | ||
| 47 | |||
| 48 | =head1 COPYRIGHT | ||
| 49 | |||
| 50 | Copyright 2003 Fotango Ltd. All Rights Reserved. | ||
| 51 | |||
| 52 | This module is released under the same license as Perl itself. | ||
| 53 | |||
| 54 | =cut | ||
| 55 | |||