Class MachII_util_Exception

Description

Mach-II Exception

Provides a base class for Mach-II exceptions and a compatibility layer with PHP's built-in Exception class.

Located in /MachII/util/Exception.php (line 38)

Exception
   |
   --MachII_util_Exception
Direct descendents
Method Summary
MachII_util_Exception MachII_util_Exception ([mixed $message = ''], [mixed $code = MACHII_ERROR])
array getContext ()
string getDetail ()
integer getErrorCode ()
string getExtendedInfo ()
string getType ()
string _localizeErrorMessage ([integer $message = array()], [array $code = MACHII_ERROR])
Variables
Methods
Constructor MachII_util_Exception (line 44)

Constructor

Localizes error message and calls parent constructor with new message.

MachII_util_Exception MachII_util_Exception ([mixed $message = ''], [mixed $code = MACHII_ERROR])
getContext (line 143)
array getContext ()
getDetail (line 125)

Detail of the exception.

  • return: Exception::__toString()
string getDetail ()
getErrorCode (line 116)

The exception's error code.

integer getErrorCode ()
getExtendedInfo (line 134)

String representation of the backtrace.

  • return: Exception::getTraceAsString()
string getExtendedInfo ()
getType (line 107)

The exception class name.

  • return: __CLASS__
string getType ()
_localizeErrorMessage (line 58)

Retrieve the rendered error message from an error code and message or from an error object.

  • return: the complete error message
string _localizeErrorMessage ([integer $message = array()], [array $code = MACHII_ERROR])
  • integer $message: an error code
  • array $code: associative array of message replacement values

Inherited Methods

Inherited From Exception

Exception::Exception()
Exception::getCode()
Exception::getFile()
Exception::getLine()
Exception::getMessage()
Exception::getTrace()
Exception::getTraceAsString()
Exception::__toString()

Documentation generated on Thu, 20 Jan 2005 10:47:01 -0800 by phpDocumentor 1.3.0RC3