19 Exception(
"AlphabetException: " + text +
"(" + (alpha->getAlphabetType()) +
")"),
23 Exception(
"AlphabetException: " + text +
"(" + (alpha->getAlphabetType()) +
")"),
24 alphabet_(alpha.get()) {}
53 Exception(
"AlphabetMismatchException: " + text +
"(" + alpha1->getAlphabetType() +
", " + alpha2->getAlphabetType() +
")"),
60 Exception(
"AlphabetMismatchException: " + text +
"(" + alpha1->getAlphabetType() +
", " + alpha2->getAlphabetType() +
")"),
61 alphabet1_(alpha1.get()),
62 alphabet2_(alpha2.get()) {}
The alphabet exception base class.
AlphabetException(const std::string &text, const Alphabet *alpha)
Build a new AlphabetException object.
AlphabetMismatchException(const std::string &text, const Alphabet *alpha1, const Alphabet *alpha2)
Build a new AlphabetMismatchException object.
virtual std::string getBadChar() const
Get the character that threw the exception.
BadCharException(const std::string &badChar, const std::string &text, const Alphabet *alpha)
Build a new BadCharException.
virtual int getBadInt() const
Get the integer that threw the exception.
BadIntException(int badInt, const std::string &text, const Alphabet *alpha)
Build a new BadIntException.
CharStateNotSupportedException(const std::string &text, const Alphabet *alpha)
Build a new CharStateNotSupportedException.
std::string toString(T t)
This alphabet is used to deal NumericAlphabet.