HtmlRenderer extends ErrorRenderer
[abstract description].
Table of Contents
$request | ServerRequestInterface | |
---|---|---|
$response | ResponseInterface | |
$exception | Throwable | |
$displayErrorDetails | Tells the renderer whether or not to output detailed error information to the client. | bool |
render() | Render HTML error report. | string |
renderException() | Render a summary of the exception. | string |
renderRequest() | Render HTML representation of original request. | string |
renderResponseHeaders() | Render HTML representation of response headers. | string |
renderTable() | Render HTML representation of a table of data. | string |
__construct() | Create a new ErrorRenderer object. | mixed |
render() | string | |
renderWithBody() | Body |
Properties
$request
protected
ServerRequestInterface
$request
$response
protected
ResponseInterface
$response
$exception
protected
Throwable
$exception
$displayErrorDetails
Tells the renderer whether or not to output detailed error information to the client.
protected
bool
$displayErrorDetails
Methods
render()
Render HTML error report.
public
render(
)
: string
Return values
stringrenderException()
Render a summary of the exception.
public
renderException(
$exception :
Exception
)
: string
Parameters
- $exception : Exception
Return values
stringrenderRequest()
Render HTML representation of original request.
public
renderRequest(
)
: string
Return values
stringrenderResponseHeaders()
Render HTML representation of response headers.
public
renderResponseHeaders(
)
: string
Return values
stringrenderTable()
Render HTML representation of a table of data.
protected
renderTable(
$data :
array
)
: string
Parameters
- $data : array
the array of data to render.
Return values
string__construct()
Create a new ErrorRenderer object.
public
__construct(
$request :
ServerRequestInterface
, $response :
ResponseInterface
, $exception :
Throwable
[, $displayErrorDetails :
bool
= false ]
)
: mixed
Parameters
- $request : ServerRequestInterface
The most recent Request object
- $response : ResponseInterface
The most recent Response object
- $exception : Throwable
The caught Exception object
- $displayErrorDetails : bool = false
Return values
mixedrender()
public
abstract render(
)
: string
Return values
stringrenderWithBody()
public
renderWithBody(
)
: Body