dxFeed Graal CXX API v9.0.0
Loading...
Searching...
No Matches
RuntimeException Struct Reference

A runtime axception with stacktrace. More...

#include <RuntimeException.hpp>

Inheritance diagram for RuntimeException:

Public Member Functions

 RuntimeException (StringParam message, StringParam additionalStackTrace="")
 Constructs a runtime exception.
const std::string & getStackTrace () const &
 Returns the stacktrace.

Detailed Description

A runtime axception with stacktrace.

Constructor & Destructor Documentation

◆ RuntimeException()

RuntimeException::RuntimeException ( StringParam message,
StringParam additionalStackTrace = "" )
explicit

Constructs a runtime exception.

Parameters
messageThe exception's message.
additionalStackTraceThe additional stacktrace that will be concatenated with the current stacktrace.

References RuntimeException().

Referenced by RuntimeException().

Member Function Documentation

◆ getStackTrace()

const std::string & RuntimeException::getStackTrace ( ) const &

Returns the stacktrace.

The frames are captured when the exception is created and are formatted on the first call.

Returns
The additional stacktrace if present + the current stacktrace.