dxFeed Graal Native SDK 3.13.0-rc2
Loading...
Searching...
No Matches
dxfg_catch_exception.h
Go to the documentation of this file.
1// Copyright (c) 2025 Devexperts LLC.
2// SPDX-License-Identifier: MPL-2.0
3
8
9#ifndef DXFG_CATCH_EXCEPTION_H
10#define DXFG_CATCH_EXCEPTION_H
11
12#ifdef __cplusplus
13extern "C" {
14# include <cstdint>
15#else
16# include <stdint.h>
17#endif
18
19#include "dxfg_common.h"
20
21#include "graal_isolate.h"
22
33
44 const char *class_name;
46 const char *class_loader_name;
48 const char *file_name;
50 const char *method_name;
53 int32_t line_number;
57 const char *module_name;
59 const char *module_version;
61
73
101
123DXFG_DEPRECATED("use dxfg_v4_get_and_clear_thread_exception()")
125
139DXFG_DEPRECATED("use dxfg_v4_Exception_release()")
141 // end of Exceptions
143
144#ifdef __cplusplus
145}
146#endif
147
148#endif // DXFG_CATCH_EXCEPTION_H
dxFeed Graal Native SDK Common declarations
The functions of GraalVM that create, attach to and tear down an isolate, the instance of the SDK in ...
struct __graal_isolatethread_t graal_isolatethread_t
The state of one thread attached to an isolate: the first parameter (thread) of the SDK functions.
Definition graal_isolate.h:60
dxfg_exception_t * dxfg_get_and_clear_thread_exception_t(graal_isolatethread_t *thread)
Returns the exception of the last failed function call of the calling thread and clears it.
void dxfg_Exception_release(graal_isolatethread_t *thread, dxfg_exception_t *exception)
Releases an exception that was returned by dxfg_get_and_clear_thread_exception_t().
An exception that was thrown by the Java side: the class, the message, the stack trace and the cause.
Definition dxfg_catch_exception.h:83
const char * message
Definition dxfg_catch_exception.h:88
dxfg_stack_trace_element_list * stack_trace
Definition dxfg_catch_exception.h:97
const char * print_stack_trace
Definition dxfg_catch_exception.h:94
struct dxfg_exception_t * cause
Definition dxfg_catch_exception.h:99
const char * class_name
Definition dxfg_catch_exception.h:86
The stack trace of an exception: a list of its frames, the innermost call first.
Definition dxfg_catch_exception.h:67
int32_t size
Definition dxfg_catch_exception.h:69
dxfg_stack_trace_element_t ** elements
Definition dxfg_catch_exception.h:71
An element of the stack trace of an exception: one frame, the same data as a Java StackTraceElement.
Definition dxfg_catch_exception.h:42
const char * class_loader_name
Definition dxfg_catch_exception.h:46
const char * file_name
Definition dxfg_catch_exception.h:48
const char * method_name
Definition dxfg_catch_exception.h:50
const char * module_version
Definition dxfg_catch_exception.h:59
int32_t is_native_method
Definition dxfg_catch_exception.h:55
const char * class_name
Definition dxfg_catch_exception.h:44
int32_t line_number
Definition dxfg_catch_exception.h:53
const char * module_name
Definition dxfg_catch_exception.h:57