NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Private Attributes | List of all members
WrappedThreadException Class Reference

Class for packaging exceptions thrown in threads. More...

#include <sliexceptions.h>

Inheritance diagram for WrappedThreadException:
SLIException

Public Member Functions

 WrappedThreadException (std::exception &)
 
virtual ~WrappedThreadException () throw ()
 
std::string message ()
 Returns a diagnostic message or empty string. More...
 
- Public Member Functions inherited from SLIException
 SLIException (char const *const what)
 
virtual ~SLIException () throw ()
 
virtual const char * what () const throw ()
 Returns the SLI error name, used by raiseerror. More...
 

Private Attributes

std::string message_
 

Detailed Description

Class for packaging exceptions thrown in threads.

This class is used to wrap exceptions thrown in threads. It essentially packages the message of the wrapped exception, avoiding the need of a clone() operation for each exception type.

Constructor & Destructor Documentation

WrappedThreadException::WrappedThreadException ( std::exception &  exc)
virtual WrappedThreadException::~WrappedThreadException ( )
throw (
)
inlinevirtual

Member Function Documentation

std::string WrappedThreadException::message ( )
inlinevirtual

Returns a diagnostic message or empty string.

This function is not const, because it may clear internal data fields.

Implements SLIException.

References message_.

Referenced by nest::Scheduler::prepare_nodes().

Member Data Documentation

std::string WrappedThreadException::message_
private

Referenced by message(), and WrappedThreadException().


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