class G6KExceptionListener

Properties

protected Kernel $kernel

Methods

void
__construct(Kernel $kernel)

Constructor of class G6KExceptionListener

void
onKernelException(GetResponseForExceptionEvent $event)

The listener for the exception event

Response
htmlResponse(Request $request, Exception $exception)

Renders a HTML response with the exception for the simulation engine

Response
htmlAdminResponse(Exception $exception)

Renders a HTML response with the exception for the administration module

Response
jsonResponse(Request $request, Exception $exception)

Renders a JSON response with the exception

string
trace(Exception $e, array $seen = null)

Makes an HTML trace of the exception

Details

at line 37
void __construct(Kernel $kernel)

Constructor of class G6KExceptionListener

Parameters

Kernel $kernel The Symfony kernel

Return Value

void

at line 49
void onKernelException(GetResponseForExceptionEvent $event)

The listener for the exception event

Parameters

GetResponseForExceptionEvent $event The exception event

Return Value

void

at line 72
protected Response htmlResponse(Request $request, Exception $exception)

Renders a HTML response with the exception for the simulation engine

Parameters

Request $request The request
Exception $exception

Return Value

Response The HTML response

at line 148
protected Response htmlAdminResponse(Exception $exception)

Renders a HTML response with the exception for the administration module

Parameters

Exception $exception

Return Value

Response The HTML response

at line 180
protected Response jsonResponse(Request $request, Exception $exception)

Renders a JSON response with the exception

Parameters

Request $request The request
Exception $exception The exception

Return Value

Response The JSON response

at line 216
protected string trace(Exception $e, array $seen = null)

Makes an HTML trace of the exception

Parameters

Exception $e The exception
array $seen (default: null)

Return Value

string The HTML trace