Christopher H. Laco > Mango-0.01000_13 > Mango::Exception

Download:
Mango-0.01000_13.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

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/
syntax highlighting: