May 26, 2018

Perl extension to throw HTTP-Errors as (Exception::Class-) Exceptions

Every HTTPException is a ExceptionClass - Class. So the same mechanisms apply as with ExceptionClass-classes. In fact have a look at ExceptionClass’ docs for more general information on exceptions and ExceptionClassBase for information on what methods a caught exception also has.

HTTPException is only a factory for HTTPExceptionXXX where X is a number subclasses. That means that HTTPException->new404 returns a HTTPException404 object, which in turn is a HTTPExceptionBase - Object.

WWW http//