bpp-phyl  2.2.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 () throw ()
 
virtual std::string getId () const
 Get the node id that threw the exception. More...
 

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() [1/2]

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() [2/2]

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.

◆ ~NodeNotFoundException()

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

Definition at line 208 of file TreeExceptions.h.

Member Function Documentation

◆ getId()

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.

References id_.

Member Data Documentation

◆ id_

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

Definition at line 189 of file TreeExceptions.h.

Referenced by getId().


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