Class QOracleDatabaseException
Class to handle exceptions related to database querying
-
Exception
-
QCallerException
-
QDatabaseExceptionBase
-
QOracleDatabaseException
Methods summary
public
|
#
__construct( string $strMessage, integer $intNumber, $strQuery )
The constructor of CallerExceptions. Takes in a message string
as well as an optional Offset parameter (defaults to 1).
The Offset specifiies how many calls up the call stack is responsible
for the exception. By definition, when a CallerException is called,
at the very least the Caller of the most immediate function, which is
1 up the call stack, is responsible. So therefore, by default, intOffset
is set to 1.
The constructor of CallerExceptions. Takes in a message string
as well as an optional Offset parameter (defaults to 1).
The Offset specifiies how many calls up the call stack is responsible
for the exception. By definition, when a CallerException is called,
at the very least the Caller of the most immediate function, which is
1 up the call stack, is responsible. So therefore, by default, intOffset
is set to 1.
It is rare for intOffset to be set to an integer other than 1.
Normally, the Offset would be altered by calls to IncrementOffset
at every step the CallerException is caught/rethrown up the call stack.
Parameters
- $strMessage
- the Message of the exception
- $intNumber
- $intOffset the optional Offset value (currently defaulted to 1)
- $strQuery
Overrides
|
Methods inherited from Exception
__toString(),
__wakeup(),
getCode(),
getFile(),
getLine(),
getMessage(),
getPrevious(),
getTrace(),
getTraceAsString()
|
Properties inherited from Exception
$code,
$file,
$line,
$message
|