bpp-seq3  3.0.0
bpp::CharStateNotSupportedException Class Reference

Exception thrown in case no character is available for a certain state in an alphabet. More...

#include <Bpp/Seq/Alphabet/AlphabetExceptions.h>

+ Inheritance diagram for bpp::CharStateNotSupportedException:
+ Collaboration diagram for bpp::CharStateNotSupportedException:

Public Member Functions

 CharStateNotSupportedException (const std::string &text, const Alphabet *alpha)
 Build a new CharStateNotSupportedException. More...
 
 CharStateNotSupportedException (const std::string &text, std::shared_ptr< const Alphabet > alpha)
 Build a new CharStateNotSupportedException. More...
 
virtual ~CharStateNotSupportedException ()
 
virtual const AlphabetgetAlphabet () const
 Get the alphabet that threw the exception. More...
 
const char * what () const noexcept override
 
const std::string & message () const noexcept
 

Private Attributes

const Alphabetalphabet_
 
std::string message_
 

Detailed Description

Exception thrown in case no character is available for a certain state in an alphabet.

Definition at line 218 of file AlphabetExceptions.h.

Constructor & Destructor Documentation

◆ CharStateNotSupportedException() [1/2]

CharStateNotSupportedException::CharStateNotSupportedException ( const std::string &  text,
const Alphabet alpha 
)

Build a new CharStateNotSupportedException.

Parameters
textA message to be passed to the exception hierarchy.
alphaA const pointer toward the alphabet that threw the exception.

Definition at line 66 of file AlphabetExceptions.cpp.

◆ CharStateNotSupportedException() [2/2]

CharStateNotSupportedException::CharStateNotSupportedException ( const std::string &  text,
std::shared_ptr< const Alphabet alpha 
)

Build a new CharStateNotSupportedException.

Parameters
textA message to be passed to the exception hierarchy.
alphaA const pointer toward the alphabet that threw the exception.

Definition at line 71 of file AlphabetExceptions.cpp.

◆ ~CharStateNotSupportedException()

virtual bpp::CharStateNotSupportedException::~CharStateNotSupportedException ( )
inlinevirtual

Definition at line 238 of file AlphabetExceptions.h.

Member Function Documentation

◆ getAlphabet()

virtual const Alphabet* bpp::AlphabetException::getAlphabet ( ) const
inlinevirtualinherited

Get the alphabet that threw the exception.

Returns
a const pointer toward the alphabet.

Definition at line 65 of file AlphabetExceptions.h.

References bpp::AlphabetException::alphabet_.

Member Data Documentation

◆ alphabet_

const Alphabet* bpp::AlphabetException::alphabet_
privateinherited

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