bpp-phyl3
3.0.0
|
General exception thrown if a property could not be found. More...
#include <Bpp/Phyl/Tree/PhyloTreeExceptions.h>
Public Member Functions | |
PhyloNodePropertyNotFoundException (const std::string &text, const std::string &propertyName, const PhyloTree &tree, const std::shared_ptr< PhyloNode > node) | |
Build a new PropertyNotFoundException (Node). More... | |
PhyloNodePropertyNotFoundException (const std::string &text, const std::string &propertyName, const PhyloNode *node) | |
Build a new PropertyNotFoundException (Node). More... | |
PhyloNodePropertyNotFoundException (const std::string &text, const std::string &propertyName, uint nodeId) | |
Build a new PropertyNotFoundException. More... | |
virtual | ~PhyloNodePropertyNotFoundException () |
virtual const std::string & | getPropertyName () const |
Get the name of the property that could not be found. More... | |
virtual const PhyloNode * | getNode () const |
Get the node that threw the exception. More... | |
virtual uint | 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 | |
uint | nodeId_ |
Private Attributes | |
std::string | propertyName_ |
const PhyloNode * | node_ |
std::string | message_ |
General exception thrown if a property could not be found.
Definition at line 118 of file PhyloTreeExceptions.h.
|
inline |
Build a new PropertyNotFoundException (Node).
text | A message to be passed to the exception hierarchy. |
propertyName | The name of the property. |
tree | the phyloTree owning the node |
node | A const pointer toward the node that threw the exception. |
Definition at line 132 of file PhyloTreeExceptions.h.
|
inline |
Build a new PropertyNotFoundException (Node).
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 142 of file PhyloTreeExceptions.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 153 of file PhyloTreeExceptions.h.
|
inlinevirtual |
Definition at line 157 of file PhyloTreeExceptions.h.
|
inlinevirtualinherited |
Get the node that threw the exception.
Definition at line 106 of file PhyloTreeExceptions.h.
References bpp::PhyloNodePException::node_.
|
inlinevirtualinherited |
Get the id of node that threw the exception.
Reimplemented from bpp::PhyloNodeException.
Definition at line 112 of file PhyloTreeExceptions.h.
References bpp::PhyloNodeException::nodeId_.
|
inlinevirtual |
Get the name of the property that could not be found.
Definition at line 165 of file PhyloTreeExceptions.h.
References propertyName_.
|
privateinherited |
Definition at line 60 of file PhyloTreeExceptions.h.
Referenced by bpp::PhyloNodePException::getNode(), and bpp::PhyloNodePException::operator=().
|
protectedinherited |
Definition at line 29 of file PhyloTreeExceptions.h.
Referenced by bpp::PhyloNodeException::getNodeId(), and bpp::PhyloNodePException::getNodeId().
|
private |
Definition at line 122 of file PhyloTreeExceptions.h.
Referenced by getPropertyName().