class ExceptionDataCollector extends DataCollector

ExceptionDataCollector.

Methods

serialize()

No description

unserialize($data)

No description

collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

bool
hasException()

Checks if the exception is not null.

getException()

Gets the exception.

string
getMessage()

Gets the exception message.

int
getCode()

Gets the exception code.

int
getStatusCode()

Gets the status code.

array
getTrace()

Gets the exception trace.

string
getName()

Returns the name of the collector.

Details

in DataCollector at line line 33
serialize()

in DataCollector at line line 38
unserialize($data)

Parameters

$data

at line line 28
collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

Parameters

Request $request A Request instance
Response $response A Response instance
Exception $exception An Exception instance

at line line 42
bool hasException()

Checks if the exception is not null.

Return Value

bool true if the exception is not null, false otherwise

at line line 52
Exception getException()

Gets the exception.

Return Value

Exception The exception

at line line 62
string getMessage()

Gets the exception message.

Return Value

string The exception message

at line line 72
int getCode()

Gets the exception code.

Return Value

int The exception code

at line line 82
int getStatusCode()

Gets the status code.

Return Value

int The status code

at line line 92
array getTrace()

Gets the exception trace.

Return Value

array The exception trace

at line line 100
string getName()

Returns the name of the collector.

Return Value

string The collector name