|
dxFeed Graal Native SDK 3.15.0-rc1
|
An exception that was thrown by the Java side: the class, the message, the stack trace and the cause. More...
#include <dxfg_catch_exception.h>
Data Fields | |
| const char * | class_name |
| const char * | message |
| const char * | print_stack_trace |
| dxfg_stack_trace_element_list * | stack_trace |
| struct dxfg_exception_t * | cause |
An exception that was thrown by the Java side: the class, the message, the stack trace and the cause.
It is returned by dxfg_get_and_clear_thread_exception_t() and owned by the caller: release it with dxfg_Exception_release(), which frees the structure, its strings, its stack trace and the whole chain of causes. Every pointer inside the structure belongs to it; copy what has to outlive the structure.
| struct dxfg_exception_t* dxfg_exception_t::cause |
The exception that caused this one, NULL if there is no cause. The cause has its own cause, and so on.
| const char* dxfg_exception_t::class_name |
The canonical name of the exception class (for example java.lang.IllegalArgumentException), a UTF-8 null-terminated string; NULL if the class has no canonical name (for example, an anonymous class).
| const char* dxfg_exception_t::message |
The detail message of the exception (a UTF-8 null-terminated string), NULL if the exception has no message.
| const char* dxfg_exception_t::print_stack_trace |
The printed stack trace of the exception (a UTF-8 null-terminated string): the output of Java's printStackTrace() without its first line (the class name and the message, see class_name and message). The lines of the frames and the "Caused by" sections of the causes follow.
| dxfg_stack_trace_element_list* dxfg_exception_t::stack_trace |
The stack trace of this exception (not of its causes); never NULL, an empty list if the exception has no stack trace.