|
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::NodePException:
Collaboration diagram for bpp::NodePException:Public Member Functions | |
| NodePException (const std::string &text, const Node *node=0) | |
| Build a new NodePException. More... | |
| NodePException (const std::string &text, int nodeId) | |
| Build a new NodePException. More... | |
| NodePException (const NodePException &nex) | |
| NodePException & | operator= (const NodePException &nex) |
| virtual | ~NodePException () |
| virtual const Node * | getNode () const |
| Get the node that threw the exception. More... | |
| 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 | |
| const Node * | node_ |
| std::string | message_ |
General exception thrown when something is wrong with a particular node.
Definition at line 54 of file TreeExceptions.h.
| NodePException::NodePException | ( | const std::string & | text, |
| const Node * | node = 0 |
||
| ) |
Build a new NodePException.
| text | A message to be passed to the exception hierarchy. |
| node | A const pointer toward the node that threw the exception. |
Definition at line 15 of file TreeExceptions.cpp.
|
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 73 of file TreeExceptions.h.
|
inline |
Definition at line 76 of file TreeExceptions.h.
|
inlinevirtual |
Definition at line 88 of file TreeExceptions.h.
|
inlinevirtual |
Get the node that threw the exception.
Definition at line 96 of file TreeExceptions.h.
References node_.
|
inlinevirtual |
Get the id of node that threw the exception.
Reimplemented from bpp::NodeException.
Definition at line 102 of file TreeExceptions.h.
References bpp::NodeException::nodeId_.
|
inline |
Definition at line 81 of file TreeExceptions.h.
References node_.
|
private |
Definition at line 58 of file TreeExceptions.h.
Referenced by getNode(), and operator=().
|
protectedinherited |
Definition at line 27 of file TreeExceptions.h.
Referenced by bpp::NodeException::getNodeId(), and getNodeId().