bpp-phyl
2.2.0
|
Exception thrown when something is wrong with a particular node. More...
#include <Bpp/Phyl/TreeExceptions.h>
Public Member Functions | |
NodeNotFoundException (const std::string &text, const std::string &id) | |
Build a new NodeNotFoundException. More... | |
NodeNotFoundException (const std::string &text, int id) | |
Build a new NodeNotFoundException. More... | |
virtual | ~NodeNotFoundException () throw () |
virtual std::string | getId () const |
Get the node id that threw the exception. More... | |
Private Attributes | |
std::string | id_ |
Exception thrown when something is wrong with a particular node.
Definition at line 185 of file TreeExceptions.h.
NodeNotFoundException::NodeNotFoundException | ( | const std::string & | text, |
const std::string & | id | ||
) |
Build a new NodeNotFoundException.
text | A message to be passed to the exception hierarchy. |
id | A string describing the node. |
Definition at line 58 of file TreeExceptions.cpp.
NodeNotFoundException::NodeNotFoundException | ( | const std::string & | text, |
int | id | ||
) |
Build a new NodeNotFoundException.
text | A message to be passed to the exception hierarchy. |
id | A node identifier. |
Definition at line 62 of file TreeExceptions.cpp.
|
inlinevirtual |
Definition at line 208 of file TreeExceptions.h.
|
inlinevirtual |
Get the node id that threw the exception.
Definition at line 216 of file TreeExceptions.h.
References id_.
|
private |
Definition at line 189 of file TreeExceptions.h.
Referenced by getId().