OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WDHNoSuchDataSet Class Reference

Should be thrown when an invalid index is used to get a WDataSet from the WSubject. More...

#include <WDHNoSuchDataSet.h>

+ Inheritance diagram for WDHNoSuchDataSet:
+ Collaboration diagram for WDHNoSuchDataSet:

Public Member Functions

 WDHNoSuchDataSet (const std::string &msg="DataHandler Exception: Invalid DataSet Access")
 Constructs new exception. More...
 
virtual ~WDHNoSuchDataSet () throw ()
 Destroys this exception. More...
 
- Public Member Functions inherited from WDHException
 WDHException (const std::string &msg="DataHandler Exception")
 Default constructor. More...
 
virtual ~WDHException () throw ()
 Destructor. More...
 
- Public Member Functions inherited from WException
 WException (const std::string &msg=std::string())
 Default constructor. More...
 
 WException (const std::exception &e)
 Copy a std::exception and encapsulate it. More...
 
virtual ~WException () throw ()
 Destructor. More...
 
virtual const char * what () const throw ()
 Returns the message string set on throw. More...
 
std::string getTrace () const
 Prints the trace of the call chain which caused this exception. More...
 
std::string getBacktrace () const
 Returns a call stacktrace. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from WException
static void disableBacktrace ()
 Function disables backtraces. More...
 
- Protected Attributes inherited from WException
std::string m_msg
 Message given during throw. More...
 
std::list< std::string > m_trace
 Stack trace for identifying the source where this exception came from. More...
 
- Static Protected Attributes inherited from WException
static bool noBacktrace = false
 True if the backtrace should NOT be printed. More...
 

Detailed Description

Should be thrown when an invalid index is used to get a WDataSet from the WSubject.

An index is invalid if it's greater or equal than the number of WDataSets in that WSubject.

Definition at line 40 of file WDHNoSuchDataSet.h.

Constructor & Destructor Documentation

◆ WDHNoSuchDataSet()

WDHNoSuchDataSet::WDHNoSuchDataSet ( const std::string &  msg = "DataHandler Exception: Invalid DataSet Access")
explicit

Constructs new exception.

Parameters
msgthe reason for this exception.

Definition at line 29 of file WDHNoSuchDataSet.cpp.

◆ ~WDHNoSuchDataSet()

WDHNoSuchDataSet::~WDHNoSuchDataSet ( )
throw (
)
virtual

Destroys this exception.

Definition at line 35 of file WDHNoSuchDataSet.cpp.


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