Definition at line 6 of file oxexceptionhandler.php.
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) | |
| _safeShopRedirectAndExit ($sUrl) | |
Protected Attributes | |
| $_sFileName = 'EXCEPTION_LOG.txt' | |
| $_iDebug = 0 | |
| oxExceptionHandler.__construct | ( | $ | iDebug = 0 |
) |
Class constructor
| integer | $iDebug denug level |
Definition at line 27 of file oxexceptionhandler.php.
| oxExceptionHandler.setIDebug | ( | $ | iDebug | ) |
Set the debug level
| int | $iDebug debug level (0== no debug) |
Definition at line 39 of file oxexceptionhandler.php.
| oxExceptionHandler.setLogFileName | ( | $ | sFile | ) |
Set log file path/name
| string | $sFile file name |
Definition at line 51 of file oxexceptionhandler.php.
| oxExceptionHandler.getLogFileName | ( | ) |
| oxExceptionHandler.handleUncaughtException | ( | Exception $ | oEx | ) |
Uncaught exception handler, deals with uncaught exceptions (global)
| Exception | $oEx exception object |
Definition at line 73 of file oxexceptionhandler.php.
| oxExceptionHandler._uncaughtException | ( | oxException $ | oEx | ) | [protected] |
Deal with uncaught oxException exceptions. IMPORTANT: uses _safeShopRedirectAndExit(), see description
| oxException | $oEx Exception to handle |
Definition at line 94 of file oxexceptionhandler.php.
| oxExceptionHandler._dealWithNoOxException | ( | Exception $ | oEx | ) | [protected] |
No oxid exception, just write log file. IMPOARTANT: uses _safeShopRedirectAndExit(), see description
| Exception | $oEx exception object |
Definition at line 122 of file oxexceptionhandler.php.
| oxExceptionHandler._safeShopRedirectAndExit | ( | $ | sUrl | ) | [protected] |
Only redirect if not in unit testing. This function will not return as its redirects browser and dies. And in unit tests we just return in order not to stop other tests.
| string | $sUrl redirect url |
Definition at line 150 of file oxexceptionhandler.php.
| 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
| string | $sMethod Methods name | |
| array | $aArgs Argument array |
| oxSystemComponentException | Throws an exception if the called method does not exist or is not accessable in current class |
Definition at line 175 of file oxexceptionhandler.php.
oxExceptionHandler.$_sFileName = 'EXCEPTION_LOG.txt' [protected] |
Definition at line 13 of file oxexceptionhandler.php.
oxExceptionHandler.$_iDebug = 0 [protected] |
Definition at line 20 of file oxexceptionhandler.php.
1.5.5