HumHub Documentation (unofficial)

InvalidResponseException extends Exception
in package

InvalidResponseException represents an exception caused by a non-successful server response status code.

Tags
author

Paul Klimov klimov.paul@gmail.com

since
2.0
see
Response::getIsOk()

Table of Contents

Properties

$response  : Response

Methods

__construct()  : mixed
Constructor.
getName()  : string

Properties

Methods

__construct()

Constructor.

public __construct(Response $response[, string $message = null ][, int $code = 0 ][, Exception $previous = null ]) : mixed
Parameters
$response : Response

response body

$message : string = null

error message

$code : int = 0

error code

$previous : Exception = null

The previous exception used for the exception chaining.

getName()

public getName() : string
Return values
string

the user-friendly name of this exception


        
On this page

Search results