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

Exceptions

  • BadFunctionCall
  • BadMethodCall
  • Configuration
  • Delegate
  • HTTPHeaders
  • Inconsistency
  • InvalidArgument
  • InvalidClassName
  • InvalidDriver
  • IO
  • Loader
  • MissingParameter
  • MutationAttempt
  • OutOfBounds
  • Parameter
  • Remote
  • Runtime
  • Storage
  • Stream
  • UndefinedKey
  • UnexpectedValue
  • Unsupported

Class Storage

Exception thrown on storage errors, e.g. a driver back-end reported a fatal error.

Exception
Extended by Core\Exception
Extended by Core\Exception\Storage
Namespace: Core\Exception
Package: Core\Exception
Since: 3.0
Requires: PHP 5.3
Version: 1.1
Located at Exception/Storage.inc.php

Methods summary

public
# __construct( callable $message = '', integer $errorCode = 0, Exception $previous = null, array $context = null, $codeUnificationCallback = null )

Initialises a new exception instance.

Initialises a new exception instance.

Parameters

$message

$codeUnificationCallback Callback used to unify the error code amongst storage drivers.

$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.

$codeUnificationCallback

Since

3.0

Overrides

Core\Exception::__construct
public string|false
# getUnifiedCode( )

Returns the unified error code, if possible. Performs a callback on the storage back-end that threw the exception. Error code translation is only possible if the creator of the exception supports error code translation.

Returns the unified error code, if possible. Performs a callback on the storage back-end that threw the exception. Error code translation is only possible if the creator of the exception supports error code translation.

Returns

string|false

Unified error code (as defined by the storage interface) or false, if either no callback is registered or the storage backend failed to translate the error code.

Since

3.0

Methods inherited from Core\Exception

getContext()

Methods inherited from Exception

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

Properties summary

protected callable $_codeUnificationCallback

Callback invoked to unify error code amongst storage drivers.

Callback invoked to unify error code amongst storage drivers.

#

Properties inherited from Core\Exception

$_context

Properties inherited from Exception

$code, $file, $line, $message

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