BBjAPI::getErrorInfo
Description
In BBj 17.00 and higher, the BBjErrorInfo object encapsulates assorted error information from a specific instant in time, typically captured in an error handler.
Syntax
|
Return Value |
Method |
|---|---|
|
getErrorInfo() |
|
| BBjErrorInfo | getErrorInfo(int level) |
Parameters
| Variable | Description |
|---|---|
| level | The program level of the error you're interested in, if different from the current program level. For example, if the error information is being retrieved in a global ERROR_HANDLER or ESCAPE_HANDLER, use getErrorInfo(tcb(13)-1) to retrieve information about the error that triggered the call to the global handler program. |
Return Value
Returns a BBjErrorInfo object.
Example
|
See Also
TCB() Function - Task Control Block
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.