class ErrorException extends AbstractErrorException implements NonFatalErrorExceptionInterface

Represents a non-fatal error by extending the native error exception to mark it with appropriate interfaces.

Methods

__construct( string $message, integer $severity, string $path, integer $lineNumber, Exception $previous = null)

Construct a new error exception.

Details

__construct( string $message, integer $severity, string $path, integer $lineNumber, Exception $previous = null)

Construct a new error exception.

Parameters

string $message The error message.
integer $severity The error severity.
string $path The path to the file in which the error occurred.
integer $lineNumber The line number on which the error occurred.
Exception $previous The cause, if available.