|
bpp-seq
2.2.0
|
An alphabet exception thrown when trying to specify a bad char to the alphabet. More...
#include <Bpp/Seq/Alphabet/AlphabetExceptions.h>
Inheritance diagram for bpp::BadCharException:
Collaboration diagram for bpp::BadCharException:Public Member Functions | |
| BadCharException (const std::string &badChar, const std::string &text="", const Alphabet *alpha=0) | |
| Build a new BadCharException. More... | |
| virtual | ~BadCharException () throw () |
| virtual std::string | getBadChar () const |
| Get the character that threw the exception. More... | |
| virtual const Alphabet * | getAlphabet () const |
| Get the alphabet that threw the exception. More... | |
Protected Attributes | |
| std::string | c_ |
An alphabet exception thrown when trying to specify a bad char to the alphabet.
Definition at line 95 of file AlphabetExceptions.h.
| BadCharException::BadCharException | ( | const std::string & | badChar, |
| const std::string & | text = "", |
||
| const Alphabet * | alpha = 0 |
||
| ) |
Build a new BadCharException.
| badChar | The faulty character. |
| text | A message to be passed to the exception hierarchy. |
| alpha | A const pointer toward the alphabet that threw the exception. |
Definition at line 58 of file AlphabetExceptions.cpp.
|
inlinevirtual | |||||||||||||
Definition at line 111 of file AlphabetExceptions.h.
|
inlinevirtualinherited |
Get the alphabet that threw the exception.
Definition at line 89 of file AlphabetExceptions.h.
References bpp::AlphabetException::alphabet_.
|
virtual |
Get the character that threw the exception.
Definition at line 62 of file AlphabetExceptions.cpp.
References c_.
|
protected |
Definition at line 99 of file AlphabetExceptions.h.
Referenced by getBadChar().