QuantumLibrary
Bloomberg::quantum::FutureException Struct Reference

Exception thrown by a Future or Promise object during various errors. More...

#include <quantum_future_state.h>

Inheritance diagram for Bloomberg::quantum::FutureException:
Bloomberg::quantum::BrokenPromiseException Bloomberg::quantum::BufferClosedException Bloomberg::quantum::BufferingDataException Bloomberg::quantum::FutureAlreadyRetrievedException Bloomberg::quantum::NoStateException Bloomberg::quantum::PromiseAlreadySatisfiedException Bloomberg::quantum::PromiseNotSatisfiedException

Public Member Functions

 FutureException (FutureState error)
 Constructor. More...
 
const char * what () const noexcept override
 Get the encapsulated error message from the exception object. More...
 

Detailed Description

Exception thrown by a Future or Promise object during various errors.

Constructor & Destructor Documentation

◆ FutureException()

Bloomberg::quantum::FutureException::FutureException ( FutureState  error)
inline

Constructor.

Parameters
[in]errorEnum representing the error state.

Member Function Documentation

◆ what()

const char* Bloomberg::quantum::FutureException::what ( ) const
inlineoverridenoexcept

Get the encapsulated error message from the exception object.

Returns
Error message.