bpp-phyl3  3.0.0
bpp::PhyloBranchNotFoundException Class Reference

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

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

+ Inheritance diagram for bpp::PhyloBranchNotFoundException:
+ Collaboration diagram for bpp::PhyloBranchNotFoundException:

Public Member Functions

 PhyloBranchNotFoundException (const std::string &text, const std::string &id)
 Build a new PhyloBranchNotFoundException. More...
 
 PhyloBranchNotFoundException (const std::string &text, uint id)
 Build a new PhyloBranchNotFoundException. More...
 
virtual ~PhyloBranchNotFoundException ()
 
virtual std::string getId () const
 Get the branch 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 branch.

Definition at line 356 of file PhyloTreeExceptions.h.

Constructor & Destructor Documentation

◆ PhyloBranchNotFoundException() [1/2]

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

Build a new PhyloBranchNotFoundException.

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

Definition at line 51 of file PhyloTreeExceptions.cpp.

◆ PhyloBranchNotFoundException() [2/2]

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

Build a new PhyloBranchNotFoundException.

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

Definition at line 57 of file PhyloTreeExceptions.cpp.

References toString().

◆ ~PhyloBranchNotFoundException()

virtual bpp::PhyloBranchNotFoundException::~PhyloBranchNotFoundException ( )
inlinevirtual

Definition at line 379 of file PhyloTreeExceptions.h.

Member Function Documentation

◆ getId()

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

Get the branch id that threw the exception.

Returns
The id of the branch.

Definition at line 387 of file PhyloTreeExceptions.h.

References id_.

Member Data Documentation

◆ id_

std::string bpp::PhyloBranchNotFoundException::id_
private

Definition at line 360 of file PhyloTreeExceptions.h.

Referenced by getId().


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