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