40 #ifndef _ALPHABETEXCEPTIONS_H_ 41 #define _ALPHABETEXCEPTIONS_H_ 43 #include <Bpp/Exceptions.h> 76 Exception::operator=(ae);
176 Exception::operator=(ame);
212 #endif //_ALPHABETEXCEPTIONS_H_ virtual ~BadIntException()
const Alphabet * alphabet1_
An alphabet exception thrown when trying to specify a bad char to the alphabet.
AlphabetMismatchException(const AlphabetMismatchException &ame)
This alphabet is used to deal NumericAlphabet.
virtual int getBadInt() const
Get the integer that threw the exception.
AlphabetException(const AlphabetException &ae)
AlphabetException & operator=(const AlphabetException &ae)
AlphabetMismatchException(const std::string &text="", const Alphabet *alpha1=0, const Alphabet *alpha2=0)
Build a new AlphabetMismatchException object.
AlphabetException(const std::string &text, const Alphabet *alpha=0)
Build a new AlphabetException object.
virtual ~BadCharException()
AlphabetMismatchException & operator=(const AlphabetMismatchException &ame)
BadIntException(int badInt, const std::string &text="", const Alphabet *alpha=0)
Build a new BadIntException.
The alphabet exception base class.
const Alphabet * alphabet_
std::vector< const Alphabet * > getAlphabets() const
Get the alphabets that do not match.
virtual ~AlphabetMismatchException()
Exception thrown in case no character is available for a certain state in an alphabet.
const Alphabet * alphabet2_
virtual ~AlphabetException()
virtual ~CharStateNotSupportedException()
virtual const Alphabet * getAlphabet() const
Get the alphabet that threw the exception.
An alphabet exception thrown when trying to specify a bad int to the alphabet.
Exception thrown when two alphabets do not match.
CharStateNotSupportedException(const std::string &text="", const Alphabet *alpha=0)
Build a new CharStateNotSupportedException.
virtual std::string getBadChar() const
Get the character that threw the exception.
BadCharException(const std::string &badChar, const std::string &text="", const Alphabet *alpha=0)
Build a new BadCharException.