HTTP::Response::Switch::HandlerDeclinedResponse - unrecognised HTTP::Response exception class
This module is part of distribution HTTP-Response-Switch v1.1.1.
This distribution's version numbering follows the conventions defined at semver.org.
use TryCatch; try { HTTP::Response::Switch::HandlerDeclinedResponse->throw; } catch ( HTTP::Response::Switch::HandlerDeclinedResponse $e ) { warn "caught HandlerDeclinedResponse exception: $e"; }
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.
Alex Peters <lxp@cpan.org>
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.
To install HTTP::Response::Switch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Response::Switch
CPAN shell
perl -MCPAN -e shell install HTTP::Response::Switch
For more information on module installation, please visit the detailed CPAN module installation guide.