com\setasign\SetaFramework\Controller

DefaultErrorController

File: /SetaFramework/src/Controller/DefaultErrorController.php

Class hierarchy

Implements

Summary

Properties

$httpFactory

$isDebug


Methods

__construct()

DefaultErrorController constructor.

Parameters
$httpFactory: \com\setasign\SetaFramework\Http\HttpFactoryInterface
 
$isDebug: bool
 

createHtmlError()

protected DefaultErrorController::createHtmlError (
\Throwable $exception
): \Psr\Http\Message\ResponseInterface
Parameters
$exception: \Throwable
 

createJsonError()

protected DefaultErrorController::createJsonError (
\Throwable $exception
): \Psr\Http\Message\ResponseInterface
Parameters
$exception: \Throwable
 

handleError()

public DefaultErrorController::handleError (): \Psr\Http\Message\ResponseInterface

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
Parameters
$request: \com\setasign\SetaFramework\Request\ServerRequest
 
$response: \Psr\Http\Message\ResponseInterface
 
$catchedErrors: array
 
$unexpectedOutput: string
 
$additionalLoggingOutputs: string[]
 
Exceptions

Throws \com\setasign\SetaFramework\ExceptionCollection