5 #ifndef BPP_PHYL_TREE_TREEEXCEPTIONS_H
6 #define BPP_PHYL_TREE_TREEEXCEPTIONS_H
83 NodeException::operator=(nex);
123 NodePException(
"Property not found: " + propertyName +
". " + text, node),
134 NodePException(
"Property not found: " + propertyName +
". " + text, nodeId),
210 Exception::operator=(tex);
General exception thrown when something is wrong with a particular node.
NodeException(const std::string &text, int nodeId)
Build a new NodePException.
virtual int getNodeId() const
Get the id of node that threw the exception.
Exception thrown when something is wrong with a particular node.
NodeNotFoundException(const std::string &text, const std::string &id)
Build a new NodeNotFoundException.
virtual std::string getId() const
Get the node id that threw the exception.
virtual ~NodeNotFoundException()
General exception thrown when something is wrong with a particular node.
NodePException(const std::string &text, const Node *node=0)
Build a new NodePException.
virtual const Node * getNode() const
Get the node that threw the exception.
virtual int getNodeId() const
Get the id of node that threw the exception.
NodePException(const NodePException &nex)
NodePException & operator=(const NodePException &nex)
virtual ~NodePException()
NodePException(const std::string &text, int nodeId)
Build a new NodePException.
The phylogenetic node class.
General exception thrown if a property could not be found.
PropertyNotFoundException(const std::string &text, const std::string &propertyName, const Node *node=0)
Build a new PropertyNotFoundException.
virtual ~PropertyNotFoundException()
PropertyNotFoundException(const std::string &text, const std::string &propertyName, int nodeId)
Build a new PropertyNotFoundException.
std::string propertyName_
virtual const std::string & getPropertyName() const
Get the name of the property that could not be found.
General exception thrown when something wrong happened in a tree.
virtual const Tree * getTree() const
Get the tree that threw the exception.
TreeException(const TreeException &tex)
TreeException(const std::string &text, const Tree *tree=0)
Build a new TreeException.
TreeException & operator=(const TreeException &tex)
Interface for phylogenetic tree objects.
Exception thrown when a tree is expected to be rooted.
virtual ~UnrootedTreeException()
UnrootedTreeException(const std::string &text, const Tree *tree=0)
Build a new UnrootedTreeException.
std::string toString(T t)
Defines the basic types of data flow nodes.