VuFind API Documentation

HttpErrorException extends BackendException
in package

HTTP error exception.

Tags
category

VuFind

author

David Maus maus@hab.de

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link
https://vufind.org

Table of Contents

$response  : Response
Server response.
$tags  : array<string|int, mixed>
Tags.
__construct()  : void
Constructor.
addTag()  : void
Add a tag.
createFromResponse()  : RequestErrorException|RemoteErrorException
Exception factory.
getResponse()  : Response
Return server response.
getTags()  : array<string|int, mixed>
Return all tags.
hasTag()  : bool
Return true if the exception has the requested tag.

Properties

Methods

__construct()

Constructor.

public __construct(string $message, int $code, Response $response[, Exception $prev = null ]) : void
Parameters
$message : string

Exception message

$code : int

Exception code

$response : Response

Server response

$prev : Exception = null

Previous exception

Return values
void

addTag()

Add a tag.

public addTag(string $tag) : void
Parameters
$tag : string

Tag name

Return values
void

getResponse()

Return server response.

public getResponse() : Response
Return values
Response

getTags()

Return all tags.

public getTags() : array<string|int, mixed>
Return values
array<string|int, mixed>

hasTag()

Return true if the exception has the requested tag.

public hasTag(string $tag) : bool
Parameters
$tag : string

Tag

Return values
bool

Search results