Class ErrorException
A catchable error representation
-
Exception
-
ErrorException
-
amekusa\plz\ErrorException
Methods summary
public static
amekusa\plz\ErrorException
|
#
create( string $Msg = null, integer $Code = null, integer $Severity = null, string $File = null, integer $Line = null, Exception $Previous = null )
Creates an instance
Parameters
- $Msg
- [optional] The Exception message to throw
- $Code
- [optional] The Exception code
- $Severity
- [optional] The severity level of the exception
- $File
- [optional] The filename where the exception is thrown
- $Line
- [optional] The line number where the exception is thrown
- $Previous
- [optional] The previous exception used for the exception chaining
Returns
|
public
|
#
trigger( boolean $ShowsStackTrace = false )
Triggers a PHP error
Parameters
- $ShowsStackTrace
- [optional] Whether to include the stack trace into the error message
|
public
boolean
|
#
shouldReport( )
Whether the current error reporting level satisfies this exception's severity
Whether the current error reporting level satisfies this exception's severity
Returns
boolean
|