Class Incident
An incident stores information over the cause of a fault.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Fault\Incident
Direct known subclasses
Indirect known subclasses
Namespace: Core\Fault
Package: Core\Fault
Since: 3.2
Requires: PHP 5.3
Version: 1.0
Located at Fault/Incident.inc.php
Methods summary
protected
|
|
abstract public
integer
|
|
abstract public
string
|
|
abstract public
integer
|
|
abstract public
string
|
|
abstract public
string
|
|
public
|
#
next( )
Returns the next incident (for chained exceptions). Only available on
incidents retrieved via the |
abstract public
|
|
abstract public
boolean
|
#
recoverable( )
Determines whether the incident is recoverable, i.e. whether execution can continue. |
abstract public
boolean
|
|
public
|
|
abstract public
array
|
|
abstract public
string
|
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
string |
ErrorType
Incident is an error, either triggered by PHP or the user. |
#
'error'
|
string |
ExceptionType
Incident is an uncaught exception. |
#
'exception'
|
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
|
$_next
Next incident instance, that returned this instance as its previous incident. |
|
protected
|
$_timestamp
Timestamp when the incident occurred; default to the timestamp of the moment the instance was created. |
|
protected
mixed
|
$_v_raw
Incident-specific raw data (i.e. associative data array or exception instance). |
Magic properties
public read-only
integer
|
$code
Error code of incident. |
public read-only
string
|
$filename
Filename of incident origin. |
public read-only
integer
|
$line
File line number of incident origin. |
public read-only
string
|
$message
Incident error message. |
public read-only
|
$previous
Previous incident. |
public read-only
mixed
|
$raw
Associative array of PHP error information or exception instance. |
public read-only
boolean
|
$silent
Indicates whether the incident should be treated silently. |
public read-only
|
$timestamp
Timestamp when the incident occurred. |
public read-only
array
|
$trace
Incident back-trace stack. |
public read-only
string
|
$type
Incident type. |