Overview
  • Namespace
  • Class

Namespaces

  • Slim
    • Exception
    • Handlers
      • Strategies
    • Http
    • Interfaces
      • Http

Classes

  • AbstractError
  • AbstractHandler
  • Error
  • NotAllowed
  • NotFound
  • PhpError

Class AbstractError

Abstract Slim application error handler

Slim\Handlers\AbstractHandler
Extended by Slim\Handlers\AbstractError

Direct known subclasses

Slim\Handlers\Error, Slim\Handlers\PhpError

Abstract
Namespace: Slim\Handlers
Located at Handlers/AbstractError.php

Methods summary

public
# __construct( boolean $displayErrorDetails = false, $outputBuffering = false )

Constructor

Constructor

Parameters

$displayErrorDetails
Set to true to display full details
$outputBuffering
protected
# writeToErrorLog( Exception|Throwable $throwable )

Write to the error log if displayErrorDetails is false

Write to the error log if displayErrorDetails is false

Parameters

$throwable
protected string
# renderThrowableAsText( Exception|Throwable $throwable )

Render error as Text.

Render error as Text.

Parameters

$throwable

Returns

string
protected
# logError( $message )

Wraps the error_log function so that this can be easily tested

Wraps the error_log function so that this can be easily tested

Parameters

$message

Methods inherited from Slim\Handlers\AbstractHandler

determineContentType()

Properties summary

protected boolean $displayErrorDetails
#
protected boolean|string $outputBuffering
#

Properties inherited from Slim\Handlers\AbstractHandler

$knownContentTypes

API documentation generated by ApiGen