bpp-phyl3  3.0.0
bpp::NodeNotFoundException Class Reference

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

#include <Bpp/Phyl/Tree/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 noexcept override
 
const std::string & message () const noexcept
 

Private Attributes

std::string id_
 
std::string message_
 

Detailed Description

Exception thrown when something is wrong with a particular node.

Definition at line 151 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 21 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 25 of file TreeExceptions.cpp.

References toString().

◆ ~NodeNotFoundException()

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

Definition at line 174 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 182 of file TreeExceptions.h.

References id_.

Member Data Documentation

◆ id_

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

Definition at line 155 of file TreeExceptions.h.

Referenced by getId().


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