OXID eShop CE  4.9.10
 All Classes Files Functions Variables Pages
oxExceptionHandler Class Reference

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$iDebugdebug level

Definition at line 28 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$sMethodMethods name
array$aArgsArgument array
Exceptions
oxSystemComponentExceptionThrows 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$oExexception object
Returns
null

Definition at line 119 of file oxexceptionhandler.php.

oxExceptionHandler::_uncaughtException ( oxException  $oEx)
protected

Deal with uncaught oxException exceptions.

Parameters
oxException$oExException to handle
Returns
null

Definition at line 91 of file oxexceptionhandler.php.

oxExceptionHandler::getLogFileName ( )

Get log file path/name

Returns
string

Definition at line 58 of file oxexceptionhandler.php.

oxExceptionHandler::handleUncaughtException ( Exception  $oEx)

Uncaught exception handler, deals with uncaught exceptions (global)

Parameters
Exception$oExexception object
Returns
null

Definition at line 70 of file oxexceptionhandler.php.

oxExceptionHandler::setIDebug (   $iDebug)

Set the debug level

Parameters
int$iDebugdebug level (0== no debug)

Definition at line 38 of file oxexceptionhandler.php.

oxExceptionHandler::setLogFileName (   $sFile)

Set log file path/name

Parameters
string$sFilefile name

Definition at line 48 of file oxexceptionhandler.php.

Member Data Documentation

oxExceptionHandler::$_iDebug = 0
protected

Definition at line 21 of file oxexceptionhandler.php.

oxExceptionHandler::$_sFileName = 'EXCEPTION_LOG.txt'
protected

Definition at line 14 of file oxexceptionhandler.php.


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