Overview

Namespaces

  • Autarky
    • Config
      • Loaders
    • Console
    • Container
      • Exception
      • Factory
      • Proxy
    • Database
    • Errors
    • Events
    • Files
    • Http
    • Logging
    • Providers
    • Routing
      • Events
    • Testing
    • TwigTemplating
      • Extensions
    • Utils

Classes

  • ErrorHandlerManager
  • ErrorHandlerProvider
  • StubErrorHandler

Interfaces

  • ErrorHandlerInterface
  • ErrorHandlerManagerInterface
  • Overview
  • Namespace
  • Class

Class StubErrorHandler

Stub error handler that simply re-throws the exceptions given.

Written primarily for testing purposes.

Autarky\Errors\StubErrorHandler implements Autarky\Errors\ErrorHandlerManagerInterface
Namespace: Autarky\Errors
Codecoverageignore
Located at Errors/StubErrorHandler.php
Methods summary
public
# setDebug( $toggle )
public
# setRethrow( boolean $toggle )

Set whether exceptions should be handled or rethrown.

Set whether exceptions should be handled or rethrown.

Parameters

$toggle

Implementation of

Autarky\Errors\ErrorHandlerManagerInterface::setRethrow()
public
# setLogger( $logger )
public
# appendHandler( callable|Autarky\Errors\ErrorHandlerInterface $handler )

Append a handler to the list of handlers.

Append a handler to the list of handlers.

Parameters

$handler

Implementation of

Autarky\Errors\ErrorHandlerManagerInterface::appendHandler()
public
# prependHandler( callable|Autarky\Errors\ErrorHandlerInterface $handler )

Prepend a handler to the list of handlers.

Prepend a handler to the list of handlers.

Parameters

$handler

Implementation of

Autarky\Errors\ErrorHandlerManagerInterface::prependHandler()
public
# setDefaultHandler( Autarky\Errors\ErrorHandlerInterface $handler )

Set the default handler that will be called if no other handlers are available.

Set the default handler that will be called if no other handlers are available.

Parameters

$handler

Implementation of

Autarky\Errors\ErrorHandlerManagerInterface::setDefaultHandler()
public
# register( )

Register the error handler to handle uncaught exceptions and errors.

Register the error handler to handle uncaught exceptions and errors.

Implementation of

Autarky\Errors\ErrorHandlerManagerInterface::register()
public Symfony\Component\HttpFoundation\Response
# handle( Exception $exception )

Handle an exception.

Handle an exception.

Parameters

$exception

Returns

Symfony\Component\HttpFoundation\Response

Implementation of

Autarky\Errors\ErrorHandlerInterface::handle()
Autarky Framework API documentation generated by ApiGen