|
bpp-phyl3 3.0.0
|
General exception thrown if a property could not be found. More...
#include <Bpp/Phyl/Tree/TreeExceptions.h>
Inheritance diagram for bpp::PropertyNotFoundException:
Collaboration diagram for bpp::PropertyNotFoundException: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 () |
| 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... | |
| const char * | what () const noexcept override |
| const std::string & | message () const noexcept |
Protected Attributes | |
| int | nodeId_ |
Private Attributes | |
| std::string | propertyName_ |
| const Node * | node_ |
| std::string | message_ |
General exception thrown if a property could not be found.
Definition at line 108 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 122 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 133 of file TreeExceptions.h.
|
inlinevirtual |
Definition at line 137 of file TreeExceptions.h.
|
inlinevirtualinherited |
Get the node that threw the exception.
Definition at line 96 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 102 of file TreeExceptions.h.
References bpp::NodeException::nodeId_.
|
inlinevirtual |
Get the name of the property that could not be found.
Definition at line 145 of file TreeExceptions.h.
References propertyName_.
|
privateinherited |
Definition at line 58 of file TreeExceptions.h.
Referenced by bpp::NodePException::getNode(), and bpp::NodePException::operator=().
|
protectedinherited |
Definition at line 27 of file TreeExceptions.h.
Referenced by bpp::NodeException::getNodeId(), and bpp::NodePException::getNodeId().
|
private |
Definition at line 112 of file TreeExceptions.h.
Referenced by getPropertyName().