com\setasign\SetaFramework\Controller
DefaultErrorController
File: /SetaFramework/src/Controller/DefaultErrorController.php
Class hierarchy
Implements
Summary
Properties
$isDebug
protected bool DefaultErrorController::$isDebug
Methods
__construct()
public DefaultErrorController::__construct ()
DefaultErrorController constructor.
Parameters
- $httpFactory : \com\setasign\SetaFramework\Http\HttpFactoryInterface
- $isDebug : bool
createHtmlError()
protected DefaultErrorController::createHtmlError (
\Throwable $exception
): \Psr\Http\Message\ResponseInterfaceParameters
- $exception : \Throwable
createJsonError()
protected DefaultErrorController::createJsonError (
\Throwable $exception
): \Psr\Http\Message\ResponseInterfaceParameters
- $exception : \Throwable
handleError()
This method must not throw an error!
Parameters
- $request : \com\setasign\SetaFramework\Request\ServerRequest
- $error : \Throwable
handleMinorError()
public DefaultErrorController::handleMinorError (
\com\setasign\SetaFramework\Request\ServerRequest $request,
\Psr\Http\Message\ResponseInterface $response,
array $catchedErrors,
string $unexpectedOutput,
string[] $additionalLoggingOutputs
): \Psr\Http\Message\ResponseInterface\Psr\Http\Message\ResponseInterface $response,
array $catchedErrors,
string $unexpectedOutput,
string[] $additionalLoggingOutputs
Parameters
- $request : \com\setasign\SetaFramework\Request\ServerRequest
- $response : \Psr\Http\Message\ResponseInterface
- $catchedErrors : array
- $unexpectedOutput : string
- $additionalLoggingOutputs : string[]
