dxFeed Graal CXX API v4.0.0
Loading...
Searching...
No Matches
JavaException Struct Reference

A wrapper over the interceptable Java exceptions thrown by the dxFeed Native Graal SDK. More...

#include <JavaException.hpp>

+ Inheritance diagram for JavaException:

Public Member Functions

 JavaException (const StringLikeWrapper &message, const StringLikeWrapper &className, const StringLikeWrapper &stackTrace)
 Creates an exception using Java message, className and stack trace.
 
- Public Member Functions inherited from RuntimeException
 RuntimeException (const StringLikeWrapper &message, const StringLikeWrapper &additionalStackTrace="")
 Constructs a runtime exception.
 
const std::string & getStackTrace () const &
 

Static Public Member Functions

static JavaException create (void *exceptionHandle)
 Creates an exception using native (GraalVM) Java exception handle.
 
static void throwIfJavaThreadExceptionExists ()
 Throws a JavaException if it exists (i.e. intercepted by Graal SDK)
 

Detailed Description

A wrapper over the interceptable Java exceptions thrown by the dxFeed Native Graal SDK.

Constructor & Destructor Documentation

◆ JavaException()

DXFCPP_BEGIN_NAMESPACE JavaException::JavaException ( const StringLikeWrapper & message,
const StringLikeWrapper & className,
const StringLikeWrapper & stackTrace )

Creates an exception using Java message, className and stack trace.

Also uses current stack trace.

Parameters
messageJava message.
classNameJava class name.
stackTraceJava stack trace.

References JavaException().

Referenced by create(), and JavaException().

Member Function Documentation

◆ create()

JavaException JavaException::create ( void * exceptionHandle)
static

Creates an exception using native (GraalVM) Java exception handle.

Parameters
exceptionHandleThe native Java exception handle.
Returns
An exception.

References JavaException().