UnexpectedResponseException

Extends \DomainException

Exception representing an unexpected response

since

1.2.0

Methods

__construct

Constructor

__construct(\Joomla\Http\Response $response, string $message = '', integer $code, \Exception $previous = null) 
since

1.2.0

Arguments

$response

\Joomla\Http\ResponseThe Response object.

$message

stringThe Exception message to throw.

$code

integerThe Exception code.

$previous

\ExceptionThe previous exception used for the exception chaining.

getResponse

Get the Response object.

getResponse() : \Joomla\Http\Response
since

1.2.0

Response

\Joomla\Http\Response

Properties

response

The Response object.

since

1.2.0

Type(s)

\Joomla\Http\Response