|
bpp-phyl3 3.0.0
|
General exception thrown when something is wrong with a particular node. More...
#include <Bpp/Phyl/Tree/TreeExceptions.h>
Inheritance diagram for bpp::NodeException:
Collaboration diagram for bpp::NodeException:Public Member Functions | |
| NodeException (const std::string &text, int nodeId) | |
| Build a new NodePException. More... | |
| virtual | ~NodeException () |
| virtual int | getNodeId () const |
| Get the id of node that threw the exception. More... | |
| const char * | what () const noexcept override |
| const std::string & | message () const noexcept |
Protected Attributes | |
| int | nodeId_ |
Private Attributes | |
| std::string | message_ |
General exception thrown when something is wrong with a particular node.
Definition at line 23 of file TreeExceptions.h.
|
inline |
Build a new NodePException.
| text | A message to be passed to the exception hierarchy. |
| nodeId | The id of the node that threw the exception. |
Definition at line 35 of file TreeExceptions.h.
References toString().
|
inlinevirtual |
Definition at line 39 of file TreeExceptions.h.
|
inlinevirtual |
Get the id of node that threw the exception.
Reimplemented in bpp::NodePException.
Definition at line 47 of file TreeExceptions.h.
References nodeId_.
|
protected |
Definition at line 27 of file TreeExceptions.h.
Referenced by getNodeId(), and bpp::NodePException::getNodeId().