42 #include <Bpp/Text/TextTools.h> 53 Exception(
"AlphabetException: " + text + (alpha ?
"(" + (alpha->getAlphabetType()) +
")" : string(
""))),
67 AlphabetException(
"BadIntException: " + TextTools::toString(badInt) +
". " + text, alpha),
75 Exception(
"AlphabetMismatchException: " + text + (alpha1 != 0 && alpha2 != 0 ?
"(" + alpha1->getAlphabetType() +
", " + alpha2->getAlphabetType() +
")" : string(
""))),
81 vector<const Alphabet*> v(2);
const Alphabet * alphabet1_
This alphabet is used to deal NumericAlphabet.
virtual int getBadInt() const
Get the integer that threw the exception.
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.
BadIntException(int badInt, const std::string &text="", const Alphabet *alpha=0)
Build a new BadIntException.
The alphabet exception base class.
std::vector< const Alphabet * > getAlphabets() const
Get the alphabets that do not match.
const Alphabet * alphabet2_
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.