bpp-phyl  2.4.0
bpp::NodeNotFoundException Class Reference

Exception thrown when something is wrong with a particular node. More...

#include <Bpp/Phyl/TreeExceptions.h>

+ Inheritance diagram for bpp::NodeNotFoundException:
+ Collaboration diagram for bpp::NodeNotFoundException:

Public Member Functions

 NodeNotFoundException (const std::string &text, const std::string &id)
 Build a new NodeNotFoundException. More...
 
 NodeNotFoundException (const std::string &text, int id)
 Build a new NodeNotFoundException. More...
 
virtual ~NodeNotFoundException ()
 
virtual std::string getId () const
 Get the node id that threw the exception. More...
 
const char * what () const noexceptoverride
 
const std::string & message () const noexcept
 

Private Attributes

std::string id_
 

Detailed Description

Exception thrown when something is wrong with a particular node.

Definition at line 185 of file TreeExceptions.h.

Constructor & Destructor Documentation

NodeNotFoundException::NodeNotFoundException ( const std::string &  text,
const std::string &  id 
)

Build a new NodeNotFoundException.

Parameters
textA message to be passed to the exception hierarchy.
idA string describing the node.

Definition at line 58 of file TreeExceptions.cpp.

NodeNotFoundException::NodeNotFoundException ( const std::string &  text,
int  id 
)

Build a new NodeNotFoundException.

Parameters
textA message to be passed to the exception hierarchy.
idA node identifier.

Definition at line 62 of file TreeExceptions.cpp.

References toString().

virtual bpp::NodeNotFoundException::~NodeNotFoundException ( )
inlinevirtual

Definition at line 208 of file TreeExceptions.h.

Member Function Documentation

virtual std::string bpp::NodeNotFoundException::getId ( ) const
inlinevirtual

Get the node id that threw the exception.

Returns
The id of the node.

Definition at line 216 of file TreeExceptions.h.

Member Data Documentation

std::string bpp::NodeNotFoundException::id_
private

Definition at line 189 of file TreeExceptions.h.


The documentation for this class was generated from the following files: