++ed by:

1 non-PAUSE user.

James A. Duncan
and 1 contributors

NAME

EO::Error - A generic base class for Exceptions

SYNOPSIS

   exception EO::Error::SomeError;
   exception EO::Error::SomeError::Whoo extends => 'EO::Error::SomeError';

   eval {
     throw EO::Error::SomeError text => 'some error has occurred';
   };

   if ($@) {
     $@->text
     $@->file
     $@->line
     $@->stacktrace
     print $@; # will stringify
   }

DESCRIPTION

This is the base class for Exceptions inside the EO module tree. To declare an exception class simply use the exception declaration followed by the name of the exception you want to declare. In addition to a simple declaration you can use the extends example shown in the synopsis above. If you fail to catch a thrown exception your program will die with a strack trace from that point.

AUTHOR

Arthur Bergman & James Duncan arbergman@fotango.com jduncan@fotango.com

COPYRIGHT

Copyright 2004 Fotango Ltd. All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

perl(1).