Courier::Error - Exception class for Perl modules related to the Courier MTA


Courier-Filter documentation Contained in the Courier-Filter distribution.

Index


Code Index:

NAME

Top

Courier::Error - Exception class for Perl modules related to the Courier MTA

SYNOPSIS

Top

Exception handling

    use Error qw(:try);
    use Courier::Error;

    try {
        ...
        throw Courier::Error($error_message) if $error_condition;
        ...
    }
    catch Courier::Error with {
        ...
    };
    # See "Error" for more exception handling syntax.

Deriving new exception classes

    package Courier::Error::My;
    use base qw(Courier::Error);

DESCRIPTION

Top

This class is a simple exception class for Perl modules related to the Courier MTA. See Error for detailed instructions on how to use it.

SEE ALSO

Top

For AVAILABILITY, SUPPORT, and LICENSE information, see Courier::Filter::Overview.

AUTHOR

Top

Julian Mehnle <julian@mehnle.net>


Courier-Filter documentation Contained in the Courier-Filter distribution.
#
# Courier::Error class
#
# (C) 2003-2008 Julian Mehnle <julian@mehnle.net>
# $Id: Error.pm 210 2008-03-21 19:30:31Z julian $
#
###############################################################################

package Courier::Error;

use warnings;
use strict;

use Error;

use base 'Error::Simple';

use constant TRUE   => (0 == 0);
use constant FALSE  => not TRUE;

TRUE;