OXID eShop CE  4.10.2
 All Classes Namespaces 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 30 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 158 of file oxexceptionhandler.php.

oxExceptionHandler::_dealWithNoOxException ( Exception  $oEx)
protected

No oxException, just write log file.

Parameters
Exception$oExexception object
Returns
null

Definition at line 125 of file oxexceptionhandler.php.

oxExceptionHandler::_uncaughtException ( oxException  $oEx)
protected

Deal with uncaught oxException exceptions.

Parameters
oxException$oExException to handle
Returns
null

Definition at line 97 of file oxexceptionhandler.php.

oxExceptionHandler::getLogFileName ( )

Get log file path/name

Deprecated:
since v5.3 (2016-06-17); Logging mechanism will be changed in 6.0.
Returns
string

Definition at line 64 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 76 of file oxexceptionhandler.php.

oxExceptionHandler::setIDebug (   $iDebug)

Set the debug level

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

Definition at line 40 of file oxexceptionhandler.php.

oxExceptionHandler::setLogFileName (   $sFile)

Set log file path/name

Deprecated:
since v5.3 (2016-06-17); Logging mechanism will be changed in 6.0.
Parameters
string$sFilefile name

Definition at line 52 of file oxexceptionhandler.php.

Member Data Documentation

oxExceptionHandler::$_iDebug = 0
protected

Definition at line 23 of file oxexceptionhandler.php.

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

Definition at line 16 of file oxexceptionhandler.php.


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