ServerErrorException
extends HttpException
in package
FinalYes
Thrown when there is a server error (5xx).
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- create() : mixed
- Factory method to create a new exception with a normalized error message.
- getRequest() : RequestInterface
- {@inheritdoc}
- getResponse() : ResponseInterface
- Returns the response.
- setRequest() : mixed
Properties
$response
protected
ResponseInterface
$response
$request
private
RequestInterface
$request
Methods
__construct()
public
__construct(string $message, RequestInterface $request, ResponseInterface $response[, Exception $previous = null ]) : mixed
Parameters
- $message : string
- $request : RequestInterface
- $response : ResponseInterface
- $previous : Exception = null
create()
Factory method to create a new exception with a normalized error message.
public
static create(RequestInterface $request, ResponseInterface $response[, Exception $previous = null ]) : mixed
Parameters
- $request : RequestInterface
- $response : ResponseInterface
- $previous : Exception = null
getRequest()
{@inheritdoc}
public
getRequest() : RequestInterface
Return values
RequestInterfacegetResponse()
Returns the response.
public
getResponse() : ResponseInterface
Return values
ResponseInterfacesetRequest()
private
setRequest(RequestInterface $request) : mixed
Parameters
- $request : RequestInterface