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

This exception indicates the failure of an rpc. More...

#include <RpcException.hpp>

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

Public Member Functions

 RpcException (const std::string &message, std::vector< RpcAsyncRequest > failedRpcRequests)
 Constructor. More...
 
const char * what () const noexcept override
 
std::vector< RpcAsyncRequestgetFailedCalls ()
 get a list of the rpcs that failed More...
 
- Public Member Functions inherited from NES::Exceptions::RequestExecutionException
 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 exception indicates the failure of an rpc.

Constructor & Destructor Documentation

◆ RpcException()

NES::Exceptions::RpcException::RpcException ( const std::string &  message,
std::vector< RpcAsyncRequest failedRpcRequests 
)
explicit

Constructor.

Parameters
messagea human readable message describing the error
failedRpcRequestsinformation about the failed RPC requests

Member Function Documentation

◆ getFailedCalls()

std::vector< RpcAsyncRequest > NES::Exceptions::RpcException::getFailedCalls ( )

get a list of the rpcs that failed

Returns
a list of structs containing a pointer to the completion queue and the count of operations performed in that queue

◆ what()

const char * NES::Exceptions::RpcException::what ( ) const
overridenoexcept

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