PHP Basics

TriggerExceptionError
in package

Triggers errors for uncaught exceptions.

If registered as exception handler, this catches an uncaught exception and converts it into an internal PHP error of severity E_USER_ERROR.

Usage: set_exception_handler(new TriggerExceptionError());

Tags
author

Sebastian Meyer sebastian.meyer@opencultureconsulting.com

Table of Contents

Methods

__invoke()  : void
Convert an uncaught exception into an PHP error.

Methods

__invoke()

Convert an uncaught exception into an PHP error.

public __invoke(Throwable $exception) : void
Parameters
$exception : Throwable

The exception


        
On this page

Search results