Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
a4cddb3e
Commit
a4cddb3e
authored
Jan 29, 2016
by
Carsten Rose
Browse files
Exceptions: debugShowStack implemented
parent
71fe7f50
Changes
3
Hide whitespace changes
Inline
Side-by-side
qfq/exceptions/AbstractException.php
View file @
a4cddb3e
...
...
@@ -24,7 +24,7 @@ class AbstractException extends \Exception {
* @param \Exception $previous
*/
public
function
__construct
(
$message
=
''
,
$code
=
0
,
\
Exception
$previous
=
null
)
{
$this
->
store
=
\
qfq\Store
::
getInstance
(
''
);
//
$this->store = \qfq\Store::getInstance('');
parent
::
__construct
(
$message
,
$code
,
$previous
);
}
...
...
@@ -38,7 +38,8 @@ class AbstractException extends \Exception {
$this
->
messageArray
[
'Message'
]
=
$this
->
getMessage
();
$this
->
messageArray
[
'Code'
]
=
$this
->
getCode
();
if
(
$this
->
store
->
getVar
(
'debugShowStack'
,
STORE_TYPO3
)
===
'1'
)
{
if
(
Store
::
getVar
(
'debugShowStack'
,
STORE_TYPO3
)
===
'1'
)
{
$this
->
messageArray
[
'Stacktrace'
]
=
'<pre>'
.
$this
->
getTraceAsString
()
.
'</pre>'
;
}
...
...
qfq/exceptions/DbException.php
View file @
a4cddb3e
...
...
@@ -26,12 +26,12 @@ class DbException extends AbstractException {
public
function
formatMessage
()
{
$this
->
messageArray
[
'Type'
]
=
'Db Exception'
;
$this
->
messageArray
[
'Form'
]
=
$this
->
s
tore
->
getVar
(
SYSTEM_FORM
,
STORE_SYSTEM
);
$this
->
messageArray
[
'Form Element'
]
=
$this
->
s
tore
->
getVar
(
SYSTEM_FORM_ELEMENT
,
STORE_SYSTEM
);
$this
->
messageArray
[
'Form Element Column'
]
=
$this
->
s
tore
->
getVar
(
SYSTEM_FORM_ELEMENT_COLUMN
,
STORE_SYSTEM
);
$this
->
messageArray
[
'SQL before evaluation'
]
=
$this
->
s
tore
->
getVar
(
SYSTEM_SQL_RAW
,
STORE_SYSTEM
);
$this
->
messageArray
[
'SQL after evaluation'
]
=
$this
->
s
tore
->
getVar
(
SYSTEM_SQL_FINAL
,
STORE_SYSTEM
);
$this
->
messageArray
[
'SQL Params'
]
=
$this
->
s
tore
->
getVar
(
SYSTEM_SQL_PARAM_ARRAY
,
STORE_SYSTEM
);
$this
->
messageArray
[
'Form'
]
=
S
tore
::
getVar
(
SYSTEM_FORM
,
STORE_SYSTEM
);
$this
->
messageArray
[
'Form Element'
]
=
S
tore
::
getVar
(
SYSTEM_FORM_ELEMENT
,
STORE_SYSTEM
);
$this
->
messageArray
[
'Form Element Column'
]
=
S
tore
::
getVar
(
SYSTEM_FORM_ELEMENT_COLUMN
,
STORE_SYSTEM
);
$this
->
messageArray
[
'SQL before evaluation'
]
=
S
tore
::
getVar
(
SYSTEM_SQL_RAW
,
STORE_SYSTEM
);
$this
->
messageArray
[
'SQL after evaluation'
]
=
S
tore
::
getVar
(
SYSTEM_SQL_FINAL
,
STORE_SYSTEM
);
$this
->
messageArray
[
'SQL Params'
]
=
S
tore
::
getVar
(
SYSTEM_SQL_PARAM_ARRAY
,
STORE_SYSTEM
);
return
parent
::
formatException
();
...
...
qfq/exceptions/UserException.php
View file @
a4cddb3e
...
...
@@ -26,9 +26,9 @@ class UserException extends AbstractException {
public
function
formatMessage
()
{
$this
->
messageArray
[
'Type'
]
=
'User Exception'
;
$this
->
messageArray
[
'Form'
]
=
$this
->
s
tore
->
getVar
(
SYSTEM_FORM
,
STORE_SYSTEM
);
$this
->
messageArray
[
'Form Element'
]
=
$this
->
s
tore
->
getVar
(
SYSTEM_FORM_ELEMENT
,
STORE_SYSTEM
);
$this
->
messageArray
[
'Form Element Column'
]
=
$this
->
s
tore
->
getVar
(
SYSTEM_FORM_ELEMENT_COLUMN
,
STORE_SYSTEM
);
$this
->
messageArray
[
'Form'
]
=
S
tore
::
getVar
(
SYSTEM_FORM
,
STORE_SYSTEM
);
$this
->
messageArray
[
'Form Element'
]
=
S
tore
::
getVar
(
SYSTEM_FORM_ELEMENT
,
STORE_SYSTEM
);
$this
->
messageArray
[
'Form Element Column'
]
=
S
tore
::
getVar
(
SYSTEM_FORM_ELEMENT_COLUMN
,
STORE_SYSTEM
);
return
parent
::
formatException
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment