xplo.re Medusa Core Framework 3.2
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Event
  • Todo
  • Download

Namespaces

  • Core
    • Authentication
      • Auto
        • Driver
      • Driver
    • Cache
      • Driver
    • Charset
      • Driver
    • Configuration
      • Driver
    • Controller
    • Converter
      • Driver
    • Decoder
      • Driver
    • Encoder
      • Driver
    • Env
      • Authentication
      • Locale
      • Proxy
      • Server
        • HTTP
        • Redirect
        • X
    • Exception
    • Exchange
      • Driver
    • Fault
      • Formatter
        • Driver
      • Incident
        • Exception
      • Reporter
        • Driver
    • Field
    • Filter
      • Driver
    • Formatter
      • Driver
        • coreuimarkup
          • Token
    • Hash
    • Loader
    • Locale
    • Log
      • Driver
    • Module
      • Dependency
        • Requirement
          • Core
          • PHP
      • Linkage
        • Driver
    • PDF
    • Plugin
    • Query
      • Driver
    • Server
      • Driver
    • Session
      • Driver
    • Set
    • Storage
      • Driver
      • Field
        • Element
    • Stream
      • Driver
    • String
    • Translation
      • Driver
      • Language
        • Driver
    • Type
    • URI
      • Driver
    • Version
    • View
      • Driver
        • coreui
          • Control
            • Button
            • Table
          • Element
        • htmlbuilder
          • Tags
        • yui
          • Modules
  • None
  • PHP

Classes

  • Error
  • Exception

Class Error

An incident stores information over the cause of a fault.

Core\Object implements Core\Chainable
Extended by Core\Set implements Core\Accessor
Extended by Core\Fault\Incident
Extended by Core\Fault\Incident\Error
Namespace: Core\Fault\Incident
Package: Core\Fault
Since: 3.2
Requires: PHP 5.3
Version: 1.0
Located at Fault/Incident/Error.inc.php

Methods summary

public static Core\Fault\Incident\Error
# last( array $codeFilter = null )

Returns an error incident instance for the last occurred PHP error.

Returns an error incident instance for the last occurred PHP error.

Parameters

$codeFilter

Array of error codes to return an incident for. If the last PHP error is of a type not in this list, null is returned. If not provided, an incident for any error code will be returned.

Returns

Core\Fault\Incident\Error

Error incident instance for last occurred error or null, if there has not been an error (of the requested kind).

Since

3.2
public static int[]
# unrecoverableCodes( )

Returns an array of standard error codes that are non-recoverable.

Returns an array of standard error codes that are non-recoverable.

Returns

int[]
Array of non-recoverable error codes.

Since

3.2
public
# __construct( array $error )

Initialises a new incident.

Initialises a new incident.

Since

3.2

Overrides

Core\Fault\Incident::__construct
public integer
# code( )

Returns the error code of the incident.

Returns the error code of the incident.

Returns

integer
Error code of incident.

Since

3.2
public string
# filename( )

Returns the incident origin filename.

Returns the incident origin filename.

Returns

string
Filename of incident origin.

Since

3.2
public integer
# line( )

Returns the incident origin file line number.

Returns the incident origin file line number.

Returns

integer
File line number of incident origin.

Since

3.2
public string
# message( )

Returns the incident error message.

Returns the incident error message.

Returns

string
Error message of incident.

Since

3.2
public string
# name( )

Returns a name for the incident, based on the type.

Returns a name for the incident, based on the type.

Returns

string
A name for the incident, for display purposes only.

Since

3.2
public Core\Fault\Incident
# previous( )

Returns the previous incident (for chained exceptions).

Returns the previous incident (for chained exceptions).

Returns

Core\Fault\Incident
Previous incident.

Since

3.2
public boolean
# recoverable( )

Determines whether the incident is recoverable, i.e. whether execution can continue.

Determines whether the incident is recoverable, i.e. whether execution can continue.

Returns

boolean
true, if incident is recoverable, otherwise false.

Since

3.2
public boolean
# silent( )

Indicates whether the incident should be treated silently.ce stack.

Indicates whether the incident should be treated silently.ce stack.

Returns

boolean

If true, the incident should be treated silently (i.e. suppress error message to user or completely do not report the error, depending on the configured reporter).

Since

3.2
public array
# trace( )

Returns the incident back-trace stack.ce stack.

Returns the incident back-trace stack.ce stack.

Returns

array
Incident back-trace stack.

Since

3.2
public string
# type( )

Returns the incident type.

Returns the incident type.

Returns

string
Incident type.

Since

3.2

Methods inherited from Core\Fault\Incident

next(), timestamp()

Methods inherited from Core\Set

__get(), __isset()

Methods inherited from Core\Object

__autocreateFactory(), __call(), __processParameters(), __toString(), attachMethod(), chain(), getValueForKey(), getValueForKeyPath(), getValueForUndefinedKey(), hash(), issetValueForKey(), setValueForKey(), setValueForKeyPath(), setValueForUndefinedKey(), uuid()

Constants summary

Constants inherited from Core\Fault\Incident

ErrorType, ExceptionType

Constants inherited from Core\Object

AnyParameterType, AutochainParameterType, AutocreateParameterType, BooleanParameterType, CharParameterType, EnumParameterType, IntegerParameterType, RealParameterType, StringParameterType, UserParameterType

Properties summary

protected array $_v_raw

{@inheritdoc}

{@inheritdoc}

Since

3.2
#

Properties inherited from Core\Fault\Incident

$_next, $_timestamp

Magic properties inherited from Core\Fault\Incident

$code, $filename, $line, $message, $previous, $raw, $silent, $timestamp, $trace, $type

Magic properties inherited from Core\Object

$hash, $uuid

xplo.re Medusa Core Framework 3.2 API documentation generated by ApiGen