bpp-seq  2.2.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=0)
 Build a new CharStateNotSupportedException. More...
 
virtual ~CharStateNotSupportedException () throw ()
 
virtual const AlphabetgetAlphabet () const
 Get the alphabet that threw the exception. More...
 

Detailed Description

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

Definition at line 196 of file AlphabetExceptions.h.

Constructor & Destructor Documentation

◆ CharStateNotSupportedException()

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

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 89 of file AlphabetExceptions.cpp.

◆ ~CharStateNotSupportedException()

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

Definition at line 207 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 89 of file AlphabetExceptions.h.

References bpp::AlphabetException::alphabet_.


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