46 #include <Bpp/Text/TextTools.h> 59 Exception(
"NodeNotFoundException: " + text +
"(" + id +
")"),
63 Exception(
"NodeNotFoundException: " + text +
"(" + TextTools::toString(id) +
")"),
64 id_(TextTools::toString(id)) {}
69 Exception(
"TreeException: " + text + (tree != 0 ?
"(" + tree->getName() +
")" :
"")),
Interface for phylogenetic tree objects.
General exception thrown when something wrong happened in a tree.
UnrootedTreeException(const std::string &text, const Tree *tree=0)
Build a new UnrootedTreeException.
The phylogenetic node class.
NodeNotFoundException(const std::string &text, const std::string &id)
Build a new NodeNotFoundException.
TreeException(const std::string &text, const Tree *tree=0)
Build a new TreeException.
General exception thrown when something is wrong with a particular node.
NodePException(const std::string &text, const Node *node=0)
Build a new NodePException.