bpp-phyl
2.2.0
|
General exception thrown if a property could not be found. More...
#include <Bpp/Phyl/TreeExceptions.h>
Public Member Functions | |
PropertyNotFoundException (const std::string &text, const std::string &propertyName, const Node *node=0) | |
Build a new PropertyNotFoundException. More... | |
PropertyNotFoundException (const std::string &text, const std::string &propertyName, int nodeId) | |
Build a new PropertyNotFoundException. More... | |
virtual | ~PropertyNotFoundException () throw () |
virtual const std::string & | getPropertyName () const |
Get the name of the property that could not be found. More... | |
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 | |
std::string | propertyName_ |
General exception thrown if a property could not be found.
Definition at line 142 of file TreeExceptions.h.
|
inline |
Build a new PropertyNotFoundException.
text | A message to be passed to the exception hierarchy. |
propertyName | The name of the property. |
node | A const pointer toward the node that threw the exception. |
Definition at line 156 of file TreeExceptions.h.
|
inline |
Build a new PropertyNotFoundException.
text | A message to be passed to the exception hierarchy. |
propertyName | The name of the property. |
nodeId | The id of the node that threw the exception. |
Definition at line 167 of file TreeExceptions.h.
|
inlinevirtual |
Definition at line 171 of file TreeExceptions.h.
|
inlinevirtualinherited |
Get the node that threw the exception.
Definition at line 130 of file TreeExceptions.h.
References bpp::NodePException::node_.
|
inlinevirtualinherited |
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_.
|
inlinevirtual |
Get the name of the property that could not be found.
Definition at line 179 of file TreeExceptions.h.
References propertyName_.
|
protectedinherited |
Definition at line 61 of file TreeExceptions.h.
Referenced by bpp::NodeException::getNodeId(), and bpp::NodePException::getNodeId().
|
private |
Definition at line 146 of file TreeExceptions.h.
Referenced by getPropertyName().