bpp-phyl3  3.0.0
bpp::PhyloNodeNotFoundException Class Reference

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

#include <Bpp/Phyl/Tree/PhyloTreeExceptions.h>

+ Inheritance diagram for bpp::PhyloNodeNotFoundException:
+ Collaboration diagram for bpp::PhyloNodeNotFoundException:

Public Member Functions

 PhyloNodeNotFoundException (const std::string &text, const std::string &id)
 Build a new PhyloNodeNotFoundException. More...
 
 PhyloNodeNotFoundException (const std::string &text, uint id)
 Build a new PhyloNodeNotFoundException. More...
 
virtual ~PhyloNodeNotFoundException ()
 
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 171 of file PhyloTreeExceptions.h.

Constructor & Destructor Documentation

◆ PhyloNodeNotFoundException() [1/2]

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

Build a new PhyloNodeNotFoundException.

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

Definition at line 29 of file PhyloTreeExceptions.cpp.

◆ PhyloNodeNotFoundException() [2/2]

PhyloNodeNotFoundException::PhyloNodeNotFoundException ( const std::string &  text,
uint  id 
)

Build a new PhyloNodeNotFoundException.

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

Definition at line 33 of file PhyloTreeExceptions.cpp.

References toString().

◆ ~PhyloNodeNotFoundException()

virtual bpp::PhyloNodeNotFoundException::~PhyloNodeNotFoundException ( )
inlinevirtual

Definition at line 194 of file PhyloTreeExceptions.h.

Member Function Documentation

◆ getId()

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

Get the node id that threw the exception.

Returns
The id of the node.

Definition at line 202 of file PhyloTreeExceptions.h.

References id_.

Member Data Documentation

◆ id_

std::string bpp::PhyloNodeNotFoundException::id_
private

Definition at line 175 of file PhyloTreeExceptions.h.

Referenced by getId().


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