HTTP::Exception::3XX(3pm)

HTTP::Exception::3XX3pm

Base class for 3xx (redirect) exceptions

Usage

    use HTTP::Exception;
    # all are exactly the same
    HTTP::Exception->throw(301, location => 'google.com');
    HTTP::Exception::301->throw(location => 'google.com');
    HTTP::Exception::MOVED_PERMANENTLY->throw(location => 'google.com');
    # and in your favourite Webframework
    eval { ... }
    if (my $e = HTTP::Exception::301->caught) {
        my $self->req->redirect($e->location);
    }

Version

version 0.04007

Overview

This package is the base class for all 3XX (redirect) Exceptions. This makes adding features for a range of exceptions easier.

DON'T USE THIS PACKAGE DIRECTLY. 'use HTTP::Exception' does this for you.

Additional fields

Fields, that 3XX-Exceptions provide over HTTP::Exceptions.

location

Indicates, where the browser is being redirected to.

Support

You can find documentation for this module with the perldoc command.

    perldoc HTTP::Exception::Base

You can also look for information at:

•

RT: CPAN's request tracker

<http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTTP-Exception>

•

AnnoCPAN: Annotated CPAN documentation

<http://annocpan.org/dist/HTTP-Exception>

•

CPAN Ratings

<http://cpanratings.perl.org/d/HTTP-Exception>

•

Search CPAN

<https://metacpan.org/release/HTTP-Exception>

Releases

7 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8–9
  3. 10–13

Author

Thomas Mueller, "<tmueller at cpan.org>"

Bugs

Please report any bugs or feature requests to "bug-http-exception at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTTP-Exception>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

From libhttp-exception-perl 0.04007-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.