| OpenFrame-WebApp documentation | Contained in the OpenFrame-WebApp distribution. |
OpenFrame::WebApp::Error::Abstract - error thrown by abstract methods.
use Error; use OpenFrame::WebApp::Error::Abstract; throw OpenFrame::WebApp::Error::Abstract( class => ref($self) );
This class inherits its interface from the Error module.
On creation, '-text' is automatically set to a warning message containing the
unimplemented method name and the offending package.
Steve Purkis <spurkis@epn.nu>
Inspired by Pipeline::Error::Abstract, by James A. Duncan.
Copyright (c) 2003 Steve Purkis. All rights reserved. Released under the same license as Perl itself.
| OpenFrame-WebApp documentation | Contained in the OpenFrame-WebApp distribution. |
package OpenFrame::WebApp::Error::Abstract; use utf8; use strict; use warnings::register; our $VERSION = (split(/ /, ' $Revision: 1.2 $ '))[2]; use base qw( Error ); sub new { my $class = shift; my %args = @_; my $pkg = $args{class}; local $Error::Depth = $Error::Depth + 1; my ($sub, $d); ($d, $d, $d, $sub) = caller(2); my $text = "$pkg does not implement abstract method $sub\()!"; $class->SUPER::new(-text => $text, @_); } 1; __END__