|
dxFeed Graal CXX API v9.0.0
|
A wrapper over the interceptable Java exceptions thrown by the dxFeed Native Graal SDK. More...
#include <JavaException.hpp>
Public Member Functions | |
| JavaException (StringParam message, StringParam className, StringParam stackTrace) | |
| Creates an exception using Java message, className and stack trace. | |
| const std::string & | getJavaClassName () const &noexcept |
| const std::string & | getJavaMessage () const &noexcept |
| const std::string & | getJavaStackTrace () const &noexcept |
| Public Member Functions inherited from RuntimeException | |
| RuntimeException (StringParam message, StringParam additionalStackTrace="") | |
| Constructs a runtime exception. | |
| const std::string & | getStackTrace () const & |
| Returns the stacktrace. | |
Static Public Member Functions | |
| static JavaException | create (void *exceptionHandle) |
| Creates an exception using native (GraalVM) Java exception handle. | |
| static JavaException | createAndRelease (void *exceptionHandle) |
| Creates an exception from a native Java exception handle and releases the native representation. | |
| static void | throwIfJavaThreadExceptionExists () |
| Throws a JavaException if it exists (i.e. intercepted by Graal SDK). | |
A wrapper over the interceptable Java exceptions thrown by the dxFeed Native Graal SDK.
| JavaException::JavaException | ( | StringParam | message, |
| StringParam | className, | ||
| StringParam | stackTrace ) |
Creates an exception using Java message, className and stack trace.
Also uses current stack trace.
| message | Java message. |
| className | Java class name. |
| stackTrace | Java stack trace. |
References JavaException().
Referenced by JavaException().
|
static |
Creates an exception using native (GraalVM) Java exception handle.
| exceptionHandle | The native Java exception handle. |
Referenced by createAndRelease().
|
static |
Creates an exception from a native Java exception handle and releases the native representation.
| exceptionHandle | The native Java exception handle. |
References create().
|
noexcept |
|
noexcept |
|
noexcept |