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

Namespaces

  • Core
    • Authentication
      • Auto
        • Driver
      • Driver
    • Cache
      • Driver
    • Charset
      • Driver
    • Configuration
    • Controller
    • Converter
      • Driver
    • Decoder
      • Driver
    • Encoder
      • Driver
    • Env
      • Authentication
      • Locale
      • Proxy
      • Server
        • HTTP
        • Redirect
        • X
    • Exception
    • Exchange
      • 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
    • URI
      • Driver
    • Version
    • View
      • Driver
        • coreui
          • Control
            • Button
            • Table
          • Element
        • htmlbuilder
          • Tags
        • yui
          • Modules
  • None
  • PHP

Classes

  • Authentication
  • Authentication_Token
  • Autoloader
  • Cache
  • Charset
  • ClassDescriptor
  • Closure
  • Controller
  • Converter
  • Date
  • Decoder
  • Delegate
  • Dispatcher
  • Encoder
  • Env
  • Env_Field
  • Env_File
  • Env_FileList
  • Env_Request
  • Env_SERVER
  • Exchange
  • Fault
  • Field
  • Filter
  • Filter_Value
  • Formatter
  • Hash
  • IP
  • Loader
  • Locale
  • Locale_Iterator
  • Locale_Node
  • Log
  • Module
  • Module_Iterator
  • Nothing
  • Object
  • OS
  • Plugin
  • Profiler
  • Query
  • Registry
  • Resource
  • Server
  • Session
  • Session_Token
  • Set
  • Storage
  • Storage_Result
  • Storage_Statement
  • Stream
  • String
  • Translation
  • URI
  • URI_Parameters
  • UUID
  • Value
  • Version
  • View

Interfaces

  • Accessor
  • Chainable
  • Comparable
  • Configurable
  • Equality
  • Identity
  • Inquiry
  • Masquerade
  • Mutator
  • SeekableStream
  • Storable
  • Variator

Exceptions

  • Exception

Constants

  • Copyright
  • ProductName
  • UseVersion
  • Version

Functions

  • ns_expand
  • ns_file_exists
  • ns_get_version
  • ns_resolve

Class Exception

Base exception for all Core exceptions. Equals the default SPL exception but enables enhanced Core\Fault report functionality.

History

In Medusa Core 3.0, the standard SPL exceptions were used as base classes. With the introduction of advanced fault reports and debugging support in 3.1, a common base class with support for storing additional information in a unified way was required. All existing exceptions were changed to inherit from this class instead.

Exception
Extended by Core\Exception

Direct known subclasses

Core\Exception\Delegate, Core\Exception\InvalidArgument, Core\Exception\Loader, Core\Exception\OutOfBounds, Core\Exception\Runtime, Core\Exception\Storage, Core\Exception\UnexpectedValue

Indirect known subclasses

Core\Exception\BadFunctionCall, Core\Exception\BadMethodCall, Core\Exception\Parameter, Core\Exception\Remote, Core\Exception\Stream, Core\Exception\UndefinedKey, Core\Exception\Unsupported, Core\Exception\Configuration, Core\Exception\HTTPHeaders, Core\Exception\Inconsistency, Core\Exception\InvalidClassName, Core\Exception\InvalidDriver, Core\Exception\IO, Core\Exception\MissingParameter, Core\Exception\MutationAttempt

Namespace: Core
Package: Core\Exception
Since: 3.1
Requires: PHP 5.3
Version: 1.0
Located at Exception.inc.php

Methods summary

public
# __construct( string $message = '', integer $errorCode = 0, Core\Exception $previous = null, array $context = null )

Initialises a new exception instance.

Initialises a new exception instance.

Parameters

$message
An optional short description on the reason for the exception.
$errorCode
An optional application-specific numeric error code.
$previous

An optional, previous related exception in a chain of exceptions. Used for debugging and error reports by including the full exception chain.

$context

Optional application-specific associative array of context information that is included in error reports.

Overrides

Exception::__construct
public array|null
# getContext( )

Returns the context array associated with the exception.

Returns the context array associated with the exception.

Returns

array|null

Application-specific context array of null, if no context information is available.

Since

3.1

Methods inherited from Exception

__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Properties summary

protected array $_context

Associated context information.

Associated context information.

#

Properties inherited from Exception

$code, $file, $line, $message

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