Tracing and error handling
BladeSmith adds tracing and error handling code throughout the generated source code if the tracing option is set to True when you generate source code in BladeSmith.
A generated utility function, Gen_Trace(), processes all tracing and error handling. Your routines must not call Gen_Trace() directly. To perform tracing and error handling tasks, use the DBDK_TRACE macros defined in the generated header file.
This section describes:
- How to use the supplied DBDK_TRACE macros to add tracing and error handling to your generated code (see Add tracing and error handling)
- How to enable tracing and use the generated TraceSet_project() procedure (see Enabling tracing in a DataBlade module and Enabling tracing in a database session)
- The standard error messages supplied by HCL OneDB™ (see ids_dbdk_182.html#ids_dbdk_182)