Al Newkirk > Bubblegum-0.44 > Bubblegum::Exception

Download:
Bubblegum-0.44.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.44   Source  

NAME ^

Bubblegum::Exception - General Purpose Exception Class for Bubblegum

VERSION ^

version 0.44

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.

syntax highlighting: