class ErrorPageErrorFormatter extends DebugViewFriendlyErrorFormatter (View source)

Provides {ErrorPage}-gnostic error handling

Properties

protected int $statusCode

Default status code

from  DebugViewFriendlyErrorFormatter
protected string $friendlyErrorMessage

Default friendly error

from  DebugViewFriendlyErrorFormatter
protected string $friendlyErrorDetail

Default error body

from  DebugViewFriendlyErrorFormatter

Methods

public
int
getStatusCode()

Get default status code

public
$this
setStatusCode(int $statusCode)

Set default status code

public
string
getTitle()

Get friendly title

public
$this
setTitle(string $title)

Set friendly title

public
string
getBody()

Get default error body

public
$this
setBody(string $body)

Set default error body

public
format(LogRecord $record)

No description

public
formatBatch(array $records)

No description

public
string
output(int $statusCode)

Return the appropriate error content for the given status code

Details

int getStatusCode()

Get default status code

Return Value

int

$this setStatusCode(int $statusCode)

Set default status code

Parameters

int $statusCode

Return Value

$this

string getTitle()

Get friendly title

Return Value

string

$this setTitle(string $title)

Set friendly title

Parameters

string $title

Return Value

$this

string getBody()

Get default error body

Return Value

string

$this setBody(string $body)

Set default error body

Parameters

string $body

Return Value

$this

format(LogRecord $record)

No description

Parameters

LogRecord $record

formatBatch(array $records)

No description

Parameters

array $records

string output(int $statusCode)

Return the appropriate error content for the given status code

Parameters

int $statusCode

Return Value

string

Content in an appropriate format for the current request