phpDocumentor Util
[ class tree: Util ] [ index: Util ] [ all elements ]

Class: MachII_util_Exception

Source Location: /util/Exception.php

Class MachII_util_Exception

Class Overview

Mach-II Exception

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

Located in /util/Exception.php [line 38]

Exception
   |
   --MachII_util_Exception
Author(s): Information Tags:

Methods

[ Top ]
Method Summary
MachII_util_Exception   MachII_util_Exception()   Constructor
array   getContext()  
string   getDetail()   Detail of the exception.
integer   getErrorCode()   The exception's error code.
string   getExtendedInfo()   String representation of the backtrace.
string   getType()   The exception class name.
string   _localizeErrorMessage()   Retrieve the rendered error message from an error code and message or from an error object.

[ Top ]
Methods
Constructor MachII_util_Exception  [line 44]

  MachII_util_Exception MachII_util_Exception( [mixed $message = ''], [mixed $code = MACHII_ERROR]  )

Constructor

Localizes error message and calls parent constructor with new message.



[ Top ]
getContext  [line 143]

  array getContext( )



[ Top ]
getDetail  [line 125]

  string getDetail( )

Detail of the exception.


API Tags:
Return:  Exception::__toString()


[ Top ]
getErrorCode  [line 116]

  integer getErrorCode( )

The exception's error code.



[ Top ]
getExtendedInfo  [line 134]

  string getExtendedInfo( )

String representation of the backtrace.


API Tags:
Return:  Exception::getTraceAsString()


[ Top ]
getType  [line 107]

  string getType( )

The exception class name.


API Tags:
Return:  __CLASS__


[ Top ]
_localizeErrorMessage  [line 58]

  string _localizeErrorMessage( [integer $message = array()], [array $code = MACHII_ERROR]  )

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

Parameters:
integer   $message:  an error code
array   $code:  associative array of message replacement values

API Tags:
Return:  the complete error message


[ Top ]

Documentation generated on Sun, 2 Jan 2005 17:38:37 -0800 by phpDocumentor 1.3.0RC3