bpp-phyl
2.2.0
|
General exception thrown when something is wrong with a particular node. More...
#include <Bpp/Phyl/TreeExceptions.h>
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 () throw () |
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... | |
Protected Attributes | |
int | nodeId_ |
Private Attributes | |
const Node * | node_ |
General exception thrown when something is wrong with a particular node.
Definition at line 88 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 52 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 107 of file TreeExceptions.h.
|
inline |
Definition at line 110 of file TreeExceptions.h.
|
inlinevirtual |
Definition at line 122 of file TreeExceptions.h.
|
inlinevirtual |
Get the node that threw the exception.
Definition at line 130 of file TreeExceptions.h.
References node_.
|
inlinevirtual |
Get the id of node that threw the exception.
Reimplemented from bpp::NodeException.
Definition at line 136 of file TreeExceptions.h.
References bpp::NodeException::nodeId_.
|
inline |
Definition at line 115 of file TreeExceptions.h.
References node_.
|
private |
Definition at line 92 of file TreeExceptions.h.
Referenced by getNode(), and operator=().
|
protectedinherited |
Definition at line 61 of file TreeExceptions.h.
Referenced by bpp::NodeException::getNodeId(), and getNodeId().