UnexpectedResponseException

Extends DomainException Implements ClientExceptionInterface

Exception representing an unexpected response

since

1.2.0

package

Joomla Framework

Methods

__construct

Constructor

__construct(\Joomla\Http\Response response, string message = '', int code, \Exception previous = null) : mixed
since

1.2.0

Arguments

response

\Joomla\Http\ResponseThe Response object.

message

stringThe Exception message to throw.

code

intThe Exception code.

previous

\ExceptionThe previous exception used for the exception chaining.

Response

mixed

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