class ErrorHandler (View source)

Convert PHP errors into exceptions

Methods

static 
handle(int $level, string $message, string $file, int $line)

Error handler

static 
register(IOInterface $io = null)

Register error handler.

Details

static handle(int $level, string $message, string $file, int $line)

Error handler

Parameters

int $level Level of the error raised
string $message Error message
string $file Filename that the error was raised in
int $line Line number the error was raised at

Exceptions

ErrorException

static register(IOInterface $io = null)

Register error handler.

Parameters

IOInterface $io