Mail::Log::Exceptions - Exceptions for the Mail::Log::* modules.
use Mail::Log::Exceptions; Mail::Log::Exceptions->throw(q{Error description});
This is a generic Exceptions module, supporting exceptions for the Mail::Log::* modules. At the moment it's just a thin wrapper around Exception::Class, with appropriate class names for this use.
Current exceptions in this module:
The root level Exception class. Generic: Avoid using.
Errors due to passing the data types, not passing required data, or other mistakes in calling method.
Exception to be thrown when a called method has not been implimented. Typically used by base classes when defining a method for subclasses to override.
Errors having to do with the logfile itself: Errors opening, reading, etc.
Errors having to do with message information: Something is unreadable, or missing, or in bad format, etc.
Errors due to there being a logfile that is incomplete, or a message that is not entirely within this logfile.
Classes in the module tree may define sub-classes of the above exceptions.
See Exception::Class
Exception::Class
Daniel T. Staal
DStaal@usa.net
Nov 22, 2008 - Added
Oct 9, 2008 - Inital version.
Copyright (c) 2008 Daniel T. Staal. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This copyright will expire in 30 years, or 5 years after the author's death, whichever is longer.
To install Mail::Log::Exceptions, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Log::Exceptions
CPAN shell
perl -MCPAN -e shell install Mail::Log::Exceptions
For more information on module installation, please visit the detailed CPAN module installation guide.