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/