Skip to content

HttpExceptionUtilityAware


  • Full name: \Codefy\Framework\Http\Middleware\Exception\Trait\HttpExceptionUtilityAware

Methods

normalizeStatusCode

protected normalizeStatusCode(int $code): int

Parameters:

Parameter Type Description
$code int

isJson

protected isJson(\Psr\Http\Message\ServerRequestInterface $request): bool

Parameters:

Parameter Type Description
$request \Psr\Http\Message\ServerRequestInterface

getSafeReferrer

protected getSafeReferrer(\Psr\Http\Message\ServerRequestInterface $request): string

Parameters:

Parameter Type Description
$request \Psr\Http\Message\ServerRequestInterface

shouldRenderView

protected shouldRenderView(): bool

Throws:


logException

protected logException(\Throwable $t): void

Parameters:

Parameter Type Description
$t \Throwable

Throws: