dxFeed Graal CXX API
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 std::string &message, const std::string &className, std::string stackTrace)
 Creates an exception using Java message, className and stack trace.
 
const std::string & getStackTrace () const &
 

Static Public Member Functions

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()

JavaException::JavaException ( const std::string & message,
const std::string & className,
std::string 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 JavaException().

Member Function Documentation

◆ getStackTrace()

const std::string & JavaException::getStackTrace ( ) const &
Returns
dxFeed Graal CXX API stack trace + Java (GraalVM) exception's stack trace.