class DebugViewFriendlyErrorFormatter implements FormatterInterface

Produce a friendly error message

Methods

int
getStatusCode()

Get default status code

$this
setStatusCode(int $statusCode)

Set default status code

string
getTitle()

Get friendly title

$this
setTitle(string $title)

Set friendly title

string
getBody()

Get default error body

$this
setBody(string $body)

Set default error body

format(array $record)

No description

formatBatch(array $records)

No description

string
output(int $statusCode)

Return the appropriate error content for the given status code

Details

at line 43
int getStatusCode()

Get default status code

Return Value

int

at line 54
$this setStatusCode(int $statusCode)

Set default status code

Parameters

int $statusCode

Return Value

$this

at line 65
string getTitle()

Get friendly title

Return Value

string

at line 76
$this setTitle(string $title)

Set friendly title

Parameters

string $title

Return Value

$this

at line 87
string getBody()

Get default error body

Return Value

string

at line 98
$this setBody(string $body)

Set default error body

Parameters

string $body

Return Value

$this

at line 104
format(array $record)

Parameters

array $record

at line 111
formatBatch(array $records)

Parameters

array $records

at line 126
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