Public Member Functions | Protected Member Functions | Protected Attributes

oxExceptionHandler Class Reference

List of all members.

Public Member Functions

 __construct ($iDebug=0)
 setIDebug ($iDebug)
 setLogFileName ($sFile)
 getLogFileName ()
 handleUncaughtException (Exception $oEx)
 __call ($sMethod, $aArgs)

Protected Member Functions

 _uncaughtException (oxException $oEx)
 _dealWithNoOxException (Exception $oEx)

Protected Attributes

 $_sFileName = 'EXCEPTION_LOG.txt'
 $_iDebug = 0

Detailed Description

Exception handler, deals with all high level exceptions (caught in oxShopControl)

Definition at line 6 of file oxexceptionhandler.php.


Constructor & Destructor Documentation

oxExceptionHandler.__construct ( iDebug = 0  ) 

Class constructor

Parameters:
integer $iDebug debug level

Definition at line 27 of file oxexceptionhandler.php.


Member Function Documentation

oxExceptionHandler.__call ( sMethod,
aArgs 
)

Only used for convenience in UNIT tests by doing so we avoid writing extended classes for testing protected or private methods

Parameters:
string $sMethod Methods name
array $aArgs Argument array
Exceptions:
oxSystemComponentException Throws an exception if the called method does not exist or is not accessible in current class
Returns:
string

Definition at line 150 of file oxexceptionhandler.php.

oxExceptionHandler._dealWithNoOxException ( Exception oEx  )  [protected]

No oxException, just write log file.

Parameters:
Exception $oEx exception object
Returns:
null

Definition at line 120 of file oxexceptionhandler.php.

oxExceptionHandler._uncaughtException ( oxException oEx  )  [protected]

Deal with uncaught oxException exceptions.

Parameters:
oxException $oEx Exception to handle
Returns:
null

Definition at line 93 of file oxexceptionhandler.php.

oxExceptionHandler.getLogFileName (  ) 

Get log file path/name

Returns:
string

Definition at line 61 of file oxexceptionhandler.php.

oxExceptionHandler.handleUncaughtException ( Exception oEx  ) 

Uncaught exception handler, deals with uncaught exceptions (global)

Parameters:
Exception $oEx exception object
Returns:
null

Definition at line 73 of file oxexceptionhandler.php.

oxExceptionHandler.setIDebug ( iDebug  ) 

Set the debug level

Parameters:
int $iDebug debug level (0== no debug)
Returns:
null

Definition at line 39 of file oxexceptionhandler.php.

oxExceptionHandler.setLogFileName ( sFile  ) 

Set log file path/name

Parameters:
string $sFile file name
Returns:
null

Definition at line 51 of file oxexceptionhandler.php.


Member Data Documentation

oxExceptionHandler.$_iDebug = 0 [protected]

Definition at line 20 of file oxexceptionhandler.php.

oxExceptionHandler.$_sFileName = 'EXCEPTION_LOG.txt' [protected]

Definition at line 13 of file oxexceptionhandler.php.


The documentation for this class was generated from the following file: