Overview

Namespaces

  • momentphp
    • exceptions
    • interfaces
    • middlewares
    • providers
    • traits
  • None

Classes

  • App
  • Bundle
  • Cache
  • CallableResolver
  • Config
  • Controller
  • Database
  • DebugInfo
  • Error
  • ExceptionHandler
  • FlashMessages
  • Helper
  • Log
  • Middleware
  • Model
  • ObjectCache
  • Provider
  • Registry
  • Router
  • Settings
  • SmartyViewEngine
  • Template
  • TwigViewEngine
  • View
  • Overview
  • Namespace
  • Class

Class Error

Error

momentphp\Error uses momentphp\traits\ContainerTrait
Namespace: momentphp
Located at Error.php
Methods summary
public
# __construct( Interop\Container\ContainerInterface $container )

Constructor

Constructor

Parameters

$container
public
# register( )

Register framework error handlers

Register framework error handlers

public
# handleError( integer $level, string $message, string $file = '', integer $line = 0, array $context = [] )

Convert a PHP error to an ErrorException

Convert a PHP error to an ErrorException

Parameters

$level
$message
$file
$line
$context
public |Psr\Http\Message\ResponseInterface
# handleException( Throwable $e )

Handle an uncaught exception from the app

Handle an uncaught exception from the app

Parameters

$e

Returns

|Psr\Http\Message\ResponseInterface
public
# handleShutdown( )

Shutdown function

Shutdown function

protected boolean
# isFatal( integer $type )

Determine if the error type is fatal

Determine if the error type is fatal

Parameters

$type

Returns

boolean
Methods used from momentphp\traits\ContainerTrait
container()
Properties used from momentphp\traits\ContainerTrait
$app, $container
MomentPHP API documentation generated by ApiGen