NAME

HTTP::Response::Switch::HandlerDeclinedResponse - unrecognised HTTP::Response exception class

VERSION

This module is part of distribution HTTP-Response-Switch v1.1.1.

This distribution's version numbering follows the conventions defined at semver.org.

SYNOPSIS

    use TryCatch;
    try {
        HTTP::Response::Switch::HandlerDeclinedResponse->throw;
    }
    catch (
        HTTP::Response::Switch::HandlerDeclinedResponse $e
    ) {
        warn "caught HandlerDeclinedResponse exception: $e";
    }

DESCRIPTION

Objects of classes consuming the HTTP::Response::Switch::Handler role throw this exception (via their "decline" method) when they determine that they cannot handle the type of HTTP::Response object passed to them in this instance.

This exception is internal to HTTP::Response::Switch and will never propagate past classes consuming that role. They should only need to be directly caught when verifying "decline" behaviour in unit tests for HTTP::Response::Switch::Handler implementations.

AUTHOR

Alex Peters <lxp@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Alex Peters.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

The full text of the license can be found in the 'LICENSE' file included with this distribution.