coral
A C++ library for distributed co-simulation
Public Member Functions | List of all members
coral::async::CommThreadDead Class Reference

An exception that signals an error that has caused CommThread's background thread to terminate unexpectedly. More...

#include "coral/async.hpp"

Inheritance diagram for coral::async::CommThreadDead:
std::exception

Public Member Functions

 CommThreadDead (std::exception_ptr originalException) CORAL_NOEXCEPT
 Constructor.
 
std::exception_ptr OriginalException () const CORAL_NOEXCEPT
 Returns a pointer to the exception that caused the thread to terminate.
 
const char * what () const CORAL_NOEXCEPT override
 Returns a generic error message saying that the background thread died.
 

Detailed Description

An exception that signals an error that has caused CommThread's background thread to terminate unexpectedly.

The original exception that caused the thread to terminate can be obtained through the OriginalException() method.


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