bpp-phyl3
3.0.0
|
Exception thrown when something is wrong with a particular node. More...
#include <Bpp/Phyl/Tree/PhyloTreeExceptions.h>
Public Member Functions | |
PhyloNodeNotFoundException (const std::string &text, const std::string &id) | |
Build a new PhyloNodeNotFoundException. More... | |
PhyloNodeNotFoundException (const std::string &text, uint id) | |
Build a new PhyloNodeNotFoundException. More... | |
virtual | ~PhyloNodeNotFoundException () |
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 171 of file PhyloTreeExceptions.h.
PhyloNodeNotFoundException::PhyloNodeNotFoundException | ( | const std::string & | text, |
const std::string & | id | ||
) |
Build a new PhyloNodeNotFoundException.
text | A message to be passed to the exception hierarchy. |
id | A string describing the node. |
Definition at line 29 of file PhyloTreeExceptions.cpp.
PhyloNodeNotFoundException::PhyloNodeNotFoundException | ( | const std::string & | text, |
uint | id | ||
) |
Build a new PhyloNodeNotFoundException.
text | A message to be passed to the exception hierarchy. |
id | A node identifier. |
Definition at line 33 of file PhyloTreeExceptions.cpp.
References toString().
|
inlinevirtual |
Definition at line 194 of file PhyloTreeExceptions.h.
|
inlinevirtual |
Get the node id that threw the exception.
Definition at line 202 of file PhyloTreeExceptions.h.
References id_.
|
private |
Definition at line 175 of file PhyloTreeExceptions.h.
Referenced by getId().