The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mango::Exception - Exception classes used in Mango

SYNOPSIS

    use Mango::Exception;
    
    throw Mango::Exception('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 either Error-style arguments, or just a plain old message string.

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

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

SEE ALSO

Handel::Iterator

AUTHOR

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