NAME
Bubblegum::Exception - General Purpose Exception Class for Bubblegum
VERSION
version 0.45
SYNOPSIS
Bubblegum::Exception->throw('oh nooo!!!');
DESCRIPTION
Bubblegum::Exception provides a general purpose exception object to be thrown and caught and rethrow. Bubblegum::Exception extends Throwable::Error, please review its documentation for addition usage information. Note: This is an early release available for testing and feedback and as such is subject to change.
try {
Bubblegum::Exception->throw(
message => 'you broke something',
);
}
catch ($exception) {
if (Bubblegum::Exception->caught($exception)) {
# you belong to me
$exception->rethrow;
}
};
AUTHOR
Al Newkirk <anewkirk@ana.io>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Al Newkirk.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.