bpp-phyl3
3.0.0
|
Exception thrown when a tree is expected to be rooted. More...
#include <Bpp/Phyl/Tree/TreeExceptions.h>
Public Member Functions | |
UnrootedTreeException (const std::string &text, const Tree *tree=0) | |
Build a new UnrootedTreeException. More... | |
virtual | ~UnrootedTreeException () |
virtual const Tree * | getTree () const |
Get the tree that threw the exception. More... | |
const char * | what () const noexcept override |
const std::string & | message () const noexcept |
Private Attributes | |
const Tree * | tree_ |
std::string | message_ |
Exception thrown when a tree is expected to be rooted.
Definition at line 229 of file TreeExceptions.h.
UnrootedTreeException::UnrootedTreeException | ( | const std::string & | text, |
const Tree * | tree = 0 |
||
) |
Build a new UnrootedTreeException.
text | A message to be passed to the exception hierarchy. |
tree | A const pointer toward the tree that threw the exception. |
Definition at line 37 of file TreeExceptions.cpp.
|
inlinevirtual |
Definition at line 241 of file TreeExceptions.h.
|
inlinevirtualinherited |
Get the tree that threw the exception.
Definition at line 223 of file TreeExceptions.h.
References bpp::TreeException::tree_.
|
privateinherited |
Definition at line 192 of file TreeExceptions.h.
Referenced by bpp::TreeException::getTree(), and bpp::TreeException::operator=().