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