ExceptionDataCollector

class ExceptionDataCollector extends DataCollector

ExceptionDataCollector.

Methods

serialize() from DataCollector
unserialize($data) from DataCollector
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.

Exception 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

serialize()

unserialize($data)

Parameters

$data

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

bool hasException()

Checks if the exception is not null.

Return Value

bool true if the exception is not null, false otherwise

Exception getException()

Gets the exception.

Return Value

Exception The exception

string getMessage()

Gets the exception message.

Return Value

string The exception message

int getCode()

Gets the exception code.

Return Value

int The exception code

int getStatusCode()

Gets the status code.

Return Value

int The status code

array getTrace()

Gets the exception trace.

Return Value

array The exception trace

string getName()

Returns the name of the collector.

Return Value

string The collector name

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/HttpKernel/DataCollector/ExceptionDataCollector.html