Class PhpError
Error Handler for PHP 7+ Throwables
Enhanced version of \Slim\Handlers\PhpError.
It outputs the error message and diagnostic information in either JSON, XML, or HTML based on the Accept header.
- Charcoal\App\Handler\AbstractHandler implements Charcoal\Config\ConfigurableInterface, Charcoal\App\Handler\HandlerInterface, Psr\Log\LoggerAwareInterface, Charcoal\View\ViewableInterface uses Charcoal\Config\ConfigurableTrait (not available) Psr\Log\LoggerAwareTrait (not available) Charcoal\Translator\TranslatorAwareTrait (not available) Charcoal\View\ViewableTrait (not available)
- Charcoal\App\Handler\PhpError
public
|
|
public
Psr\Http\Message\ResponseInterface
|
|
protected
|
#
setDisplayErrorDetails( boolean $state )
Set whether to display details of the error or a generic message. |
public
boolean
|
|
protected
|
|
public
Throwable
|
|
protected
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
public
string
|
protected
boolean
|
$displayErrorDetails
Whether to output the error's details. |
|
protected
Throwable
|
$error
The caught throwable. |
$baseUrl,
$container,
$knownContentTypes
|