bpp-seq  2.1.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:

List of all members.

Public Member Functions

 CharStateNotSupportedException (const std::string &text="", const Alphabet *alpha=0)
 Build a new CharStateNotSupportedException.
virtual ~CharStateNotSupportedException () throw ()
virtual const AlphabetgetAlphabet () const
 Get the alphabet that threw the exception.
const char * what () const

Protected Attributes

std::string message_

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 ( 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.

Definition at line 207 of file AlphabetExceptions.h.


Member Function Documentation

virtual const Alphabet* bpp::AlphabetException::getAlphabet ( ) const [inline, virtual, inherited]

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:
 All Classes Namespaces Files Functions Variables Typedefs Friends