Beta version

class ExceptionViewer

Class ExceptionViewer

Methods

__construct()

ExceptionViewer constructor.

int
getHttpStatusCode(Exception $exception)

No description

string
getHumanExceptionTitle(Exception $e)

No description

string
getJsonError(Exception $e)

No description

JsonResponse|Response
getResponse(Exception $e, Request $request, bool $debug = false)

No description

bool
isFormatJson(Request $request)

No description

string
getColoredString($string, null $foreground_color = null, null $background_color = null)

No description

array
getForegroundColors()

No description

array
getBackgroundColors()

No description

Details

at line 59
__construct()

ExceptionViewer constructor.

at line 93
int getHttpStatusCode(Exception $exception)

Parameters

Exception $exception

Return Value

int

at line 114
string getHumanExceptionTitle(Exception $e)

Parameters

Exception $e

Return Value

string

at line 147
string getJsonError(Exception $e)

Parameters

Exception $e

Return Value

string

at line 183
JsonResponse|Response getResponse(Exception $e, Request $request, bool $debug = false)

Parameters

Exception $e
Request $request
bool $debug

Return Value

JsonResponse|Response

at line 244
bool isFormatJson(Request $request)

Parameters

Request $request

Return Value

bool

at line 269
string getColoredString($string, null $foreground_color = null, null $background_color = null)

Parameters

$string
null $foreground_color
null $background_color

Return Value

string

at line 291
array getForegroundColors()

Return Value

array Returns all foreground color names

at line 299
array getBackgroundColors()

Return Value

array Returns all background color names