NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
NES::Exceptions::RequestExecutionException Class Reference

This is the base class for exceptions thrown during the execution of coordinator side requests which indicate an error that possibly require a rollback or other kinds of specific error handling. More...

#include <RequestExecutionException.hpp>

Collaboration diagram for NES::Exceptions::RequestExecutionException:
[legend]

Public Member Functions

 RequestExecutionException (const std::string &message)
 
 RequestExecutionException (QueryId queryId, const std::string &message)
 
template<class ExceptionType >
bool instanceOf ()
 Checks if this object is of type ExceptionType. More...
 
template<class ExceptionType >
std::shared_ptr< ExceptionType > as ()
 Dynamically casts the exception to the given type. More...
 
QueryId getQueryId () const
 

Detailed Description

This is the base class for exceptions thrown during the execution of coordinator side requests which indicate an error that possibly require a rollback or other kinds of specific error handling.

Constructor & Destructor Documentation

◆ RequestExecutionException() [1/2]

NES::Exceptions::RequestExecutionException::RequestExecutionException ( const std::string &  message)
explicit

◆ RequestExecutionException() [2/2]

NES::Exceptions::RequestExecutionException::RequestExecutionException ( QueryId  queryId,
const std::string &  message 
)
explicit

Member Function Documentation

◆ as()

template<class ExceptionType >
std::shared_ptr<ExceptionType> NES::Exceptions::RequestExecutionException::as ( )
inline

Dynamically casts the exception to the given type.

Template Parameters
ExceptionTypea subclass ob RequestExecutionException
Returns
returns a shared pointer of the given type

◆ getQueryId()

QueryId NES::Exceptions::RequestExecutionException::getQueryId ( ) const

◆ instanceOf()

template<class ExceptionType >
bool NES::Exceptions::RequestExecutionException::instanceOf ( )
inline

Checks if this object is of type ExceptionType.

Template Parameters
ExceptionTypea subclass ob RequestExecutionException
Returns
bool true if object is of type ExceptionType

Referenced by NES::TEST_F().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: