bpp-phyl3
3.0.0
|
Exception thrown when something is wrong with a particular node. More...
#include <Bpp/Phyl/Tree/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 () |
virtual std::string | getId () const |
Get the node id that threw the exception. More... | |
const char * | what () const noexcept override |
const std::string & | message () const noexcept |
Private Attributes | |
std::string | id_ |
std::string | message_ |
Exception thrown when something is wrong with a particular node.
Definition at line 151 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 21 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 25 of file TreeExceptions.cpp.
References toString().
|
inlinevirtual |
Definition at line 174 of file TreeExceptions.h.
|
inlinevirtual |
Get the node id that threw the exception.
Definition at line 182 of file TreeExceptions.h.
References id_.
|
private |
Definition at line 155 of file TreeExceptions.h.
Referenced by getId().