NAME

Bubblegum::Exception - General Purpose Exception Class for Bubblegum

VERSION

version 0.27

SYNOPSIS

Bubblegum::Exception->throw('oh nooo!!!');

DESCRIPTION

Bubblegum::Exception provides a general purpose exception object to be thrown and caught and rethrow.

try {
    Bubblegum::Exception->throw(
        message => 'you broke something',
        verbose => 1
    );
}
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.