NAME

Mango::Exception - Module representing an exception or error condition

SYNOPSIS

    use Mango::Exception;
    
    Mango::Exception->throw('Boom!');

DESCRIPTION

Mango:Exception is a subclass of Error that does some custom message processing for Mango based exceptions.

CONSTRUCTOR

new

Arguments: %args or $message

When creating or throwing a new exception, you can pass in Error-style arguments, or just a plain old message string.

    Mango::Exception->throw('Boom!');
    Mango::Exception->throw(-text => 'Boom!', -line => 27, ...);

Any message passed in will automatically be translated using Mango::I18N.

SEE ALSO

Mango::I18N, Error

AUTHOR

    Christopher H. Laco
    CPAN ID: CLACO
    claco@chrislaco.com
    http://today.icantfocus.com/blog/