Name : perl-HTTP-Exception
| |
Version : 0.04007
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 16:47:12
|
Group : Development/Libraries/Perl
| Source RPM : perl-HTTP-Exception-0.04007-lp154.1.1.src.rpm
|
Size : 0.08 MB
| |
Packager : https://www_suse_com/
| |
Summary : Throw HTTP-Errors as (Exception::Class-) Exceptions
|
Description :
Every HTTP::Exception is a L< Exception::Class> - Class. So the same mechanisms apply as with L< Exception::Class>-classes. In fact have a look at L< Exception::Class>\' docs for more general information on exceptions and L< Exception::Class::Base> for information on what methods a caught exception also has.
HTTP::Exception is only a factory for HTTP::Exception::XXX (where X is a number) subclasses. That means that HTTP::Exception->new(404) returns a HTTP::Exception::404 object, which in turn is a HTTP::Exception::Base - Object.
Don\'t bother checking a caught HTTP::Exception::...-class with \"isa\" as it might not contain what you would expect. Use the code- or status_message-attributes and the is_ -methods instead.
The subclasses are created at compile-time, ie the first time you make \"use HTTP::Exception\". See paragraph below for the naming scheme of those subclasses.
Subclassing the subclasses works as expected.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-H/15.4/noarch |