OXID eShop CE
4.9.10
Main Page
Related Pages
Classes
Files
File List
File Members
OXID eShop CE
Deprecated List
Classes
Files
File List
admin
application
bin
core
exception
oxadodbexception.php
oxarticleexception.php
oxarticleinputexception.php
oxconnectionexception.php
oxcookieexception.php
oxexception.php
oxexceptionhandler.php
oxexceptiontodisplay.php
oxfileexception.php
oxinputexception.php
oxlanguageexception.php
oxnoarticleexception.php
oxobjectexception.php
oxoutofstockexception.php
oxshopexception.php
oxsystemcomponentexception.php
oxuserexception.php
oxvoucherexception.php
interface
objects
oxapplicationserver.php
oxbase.php
oxcaptcha.php
oxccvalidator.php
oxcompanyvatinchecker.php
oxcompanyvatincountrychecker.php
oxcompanyvatinvalidator.php
oxconfig.php
oxconfigfile.php
oxcounter.php
oxcurl.php
oxdb.php
oxdbmetadatahandler.php
oxdebugdb.php
oxdebuginfo.php
oxdecryptor.php
oxdisplayerror.php
oxdynimggenerator.php
oxemail.php
oxencryptor.php
oxerpbase.php
oxerpcsv.php
oxerpgenimport.php
oxfb.php
oxfield.php
oxfunctions.php
oxhasher.php
oxheader.php
oxi18n.php
oxid.php
oxinputvalidator.php
oxlang.php
oxlegacydb.php
oxlist.php
oxmailvalidator.php
oxmodule.php
oxmodulecache.php
oxmodulefilesvalidator.php
oxmoduleinstaller.php
oxmodulelist.php
oxmodulemetadataagainstshopvalidator.php
oxmodulemetadatavalidator.php
oxmodulevalidatorfactory.php
oxnojsvalidator.php
oxonlinecaller.php
oxonlinelicensecheck.php
oxonlinelicensecheckcaller.php
oxonlinelicensecheckrequest.php
oxonlinelicensecheckresponse.php
oxonlinemodulesnotifierrequest.php
oxonlinemoduleversionnotifier.php
oxonlinemoduleversionnotifiercaller.php
oxonlinerequest.php
oxonlineserveremailbuilder.php
oxonlinevatidcheck.php
oxopensslfunctionalitychecker.php
oxoutput.php
oxpasswordhasher.php
oxpasswordsaltgenerator.php
oxpdf.php
oxpicturehandler.php
oxprice.php
oxpricelist.php
oxregistry.php
oxseodecoder.php
oxseoencoder.php
oxsepabicvalidator.php
oxsepaibanvalidator.php
oxsepavalidator.php
oxserverchecker.php
oxserverprocessor.php
oxserversmanager.php
oxsession.php
oxsha512hasher.php
oxshopcontrol.php
oxsimplexml.php
oxstdclass.php
oxstr.php
oxstrmb.php
oxstrregular.php
oxsupercfg.php
oxsysrequirements.php
oxsystemeventhandler.php
oxtheme.php
oxuniversallyuniqueidgenerator.php
oxusercounter.php
oxutils.php
oxutilscount.php
oxutilsdate.php
oxutilsfile.php
oxutilsobject.php
oxutilspic.php
oxutilsserver.php
oxutilsstring.php
oxutilsurl.php
oxutilsview.php
oxutilsxml.php
oxview.php
oxviewconfig.php
oxwidgetcontrol.php
modules
index.php
bootstrap.php
config.inc.php
getimg.php
oxseo.php
widget.php
File Members
•
All
Classes
Files
Functions
Variables
Pages
oxexception.php
Go to the documentation of this file.
1
<?php
2
7
class
oxException
extends
Exception
8
{
9
15
protected
$_sFileName
=
'EXCEPTION_LOG.txt'
;
16
23
protected
$_blRenderer
=
false
;
24
30
protected
$_blNotCaught
=
false
;
31
38
public
function
__construct
($sMessage =
"not set"
, $iCode = 0)
39
{
40
parent::__construct
($sMessage, $iCode);
41
}
42
48
public
function
setLogFileName
($sFile)
49
{
50
$this->_sFileName = $sFile;
51
}
52
58
public
function
getLogFileName
()
59
{
60
return
$this->_sFileName
;
61
}
62
68
public
function
setMessage
($sMessage)
69
{
70
$this->message = $sMessage;
71
}
72
76
public
function
setRenderer
()
77
{
78
$this->_blRenderer =
true
;
79
}
80
86
public
function
isRenderer
()
87
{
88
return
$this->_blRenderer
;
89
}
90
94
public
function
setNotCaught
()
95
{
96
$this->_blNotCaught =
true
;
97
}
98
104
public
function
isNotCaught
()
105
{
106
return
$this->_blNotCaught
;
107
}
108
112
public
function
debugOut
()
113
{
114
//We are most likely are already dealing with an exception so making sure no other exceptions interfere
115
try
{
116
$sLogMsg = $this->
getString
() .
"\n---------------------------------------------\n"
;
117
oxRegistry::getUtils
()->writeToLog($sLogMsg, $this->
getLogFileName
());
118
}
catch
(
Exception
$e) {
119
}
120
}
121
128
public
function
getString
()
129
{
130
$sWarning =
""
;
131
if
($this->_blNotCaught) {
132
$sWarning .=
"--!--NOT CAUGHT--!--"
;
133
}
134
135
if
($this->_blRenderer) {
136
$sWarning .=
"--!--RENDERER--!--"
;
137
}
138
139
return
$sWarning . __CLASS__ .
" (time: "
. date(
'Y-m-d H:i:s'
) .
"): [{$this->code}]: {$this->message} \n Stack Trace: {$this->getTraceAsString()}\n\n"
;
140
}
141
147
/*
148
public function __toString()
149
{
150
return $this->getString();
151
}
152
*/
160
public
function
getValues
()
161
{
162
return
array();
163
}
164
170
public
function
setDestination
($sDestination)
171
{
172
}
173
}
core
exception
oxexception.php
Generated by
1.8.1.2