Pipeline::Error::Abstract - exception thrown from abstract methods


Pipeline documentation Contained in the Pipeline distribution.

Index


Code Index:

NAME

Top

Pipeline::Error::Abstract - exception thrown from abstract methods

SYNOPSIS

Top

  use Pipeline::Error::Abstract;

  throw Pipeline::Error::Abstract;

DESCRIPTION

Top

Pipeline::Error::Abstract inherits from Error and will be thrown by any non-implemented abstract methods in the Pipeline module.

SEE ALSO

Top

Pipeline::Error::Construction Error

AUTHOR

Top

James A. Duncan <jduncan@fotango.com>

COPYRIGHT

Top


Pipeline documentation Contained in the Pipeline distribution.

package Pipeline::Error::Abstract;

use strict;

use Error;
use base qw( Error );

our $VERSION = "3.12";

sub new {
  my $class = shift;

  my $caller = caller(1);
  my $text = "cannnot call abstract method in $caller";

  local $Error::Depth = $Error::Depth + 1;
  local $Error::Debug = 1;  # Enables storing of stacktrace

  $class->SUPER::new(-text => $text, @_); 
}

1;