---
name: "Courier::Error"
section: "3pm"
platform: "linux"
package: "courier-filter-perl"
version: "0.200+ds-6"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Courier::Error"
---

# Courier::Error(3pm)

Exception class for Perl modules related to the Courier MTA

## NAME

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

## SYNOPSIS

### 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

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

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

## AUTHOR

Julian Mehnle \<julian@mehnle.net\>
