bpp-seq3  3.0.0
bpp::StopCodonException Class Reference

Exception thrown when a stop codon is found. More...

#include <Bpp/Seq/GeneticCode/GeneticCode.h>

+ Inheritance diagram for bpp::StopCodonException:
+ Collaboration diagram for bpp::StopCodonException:

Public Member Functions

 StopCodonException (const std::string &text, const std::string &codon)
 
virtual ~StopCodonException ()
 
virtual const std::string & getCodon () const
 
const char * what () const noexcept override
 
const std::string & message () const noexcept
 

Private Attributes

std::string codon_
 
std::string message_
 

Detailed Description

Exception thrown when a stop codon is found.

Definition at line 20 of file GeneticCode.h.

Constructor & Destructor Documentation

◆ StopCodonException()

StopCodonException::StopCodonException ( const std::string &  text,
const std::string &  codon 
)

Definition at line 14 of file GeneticCode.cpp.

◆ ~StopCodonException()

virtual bpp::StopCodonException::~StopCodonException ( )
inlinevirtual

Definition at line 31 of file GeneticCode.h.

Member Function Documentation

◆ getCodon()

virtual const std::string& bpp::StopCodonException::getCodon ( ) const
inlinevirtual

Definition at line 34 of file GeneticCode.h.

References codon_.

Member Data Documentation

◆ codon_

std::string bpp::StopCodonException::codon_
private

Definition at line 24 of file GeneticCode.h.

Referenced by getCodon().


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