UserFrosting API

PlainTextRenderer extends ErrorRenderer

Plain Text Error Renderer.

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() string
formatExceptionBody() Format Exception Body. string
formatExceptionFragment() string
__construct() Create a new ErrorRenderer object. mixed
render() string
renderWithBody() Body

Properties

$displayErrorDetails

Tells the renderer whether or not to output detailed error information to the client.

protected bool $displayErrorDetails
Each renderer may choose if and how to implement this.

Methods

formatExceptionBody()

Format Exception Body.

public formatExceptionBody( ) : string
Return values
string

formatExceptionFragment()

public formatExceptionFragment( $e : Exception|Throwable ) : string
Parameters
$e : Exception|Throwable
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
mixed

render()

public abstract render( ) : string
Return values
string

renderWithBody()

public renderWithBody( ) : Body
Return values
Body

Search results