bpp-seq3
3.0.0
|
An alphabet exception thrown when trying to specify a bad int to the alphabet. More...
#include <Bpp/Seq/Alphabet/AlphabetExceptions.h>
Public Member Functions | |
BadIntException (int badInt, const std::string &text, const Alphabet *alpha) | |
Build a new BadIntException. More... | |
BadIntException (int badInt, const std::string &text, std::shared_ptr< const Alphabet > alpha) | |
Build a new BadIntException. More... | |
virtual | ~BadIntException () |
virtual int | getBadInt () const |
Get the integer that threw the exception. More... | |
virtual const Alphabet * | getAlphabet () const |
Get the alphabet that threw the exception. More... | |
const char * | what () const noexcept override |
const std::string & | message () const noexcept |
Protected Attributes | |
int | i_ |
Private Attributes | |
const Alphabet * | alphabet_ |
std::string | message_ |
An alphabet exception thrown when trying to specify a bad int to the alphabet.
Definition at line 110 of file AlphabetExceptions.h.
BadIntException::BadIntException | ( | int | badInt, |
const std::string & | text, | ||
const Alphabet * | alpha | ||
) |
Build a new BadIntException.
badInt | The faulty integer. |
text | A message to be passed to the exception hierarchy. |
alpha | A const pointer toward the alphabet that threw the exception. |
Definition at line 40 of file AlphabetExceptions.cpp.
References toString().
BadIntException::BadIntException | ( | int | badInt, |
const std::string & | text, | ||
std::shared_ptr< const Alphabet > | alpha | ||
) |
Build a new BadIntException.
badInt | The faulty integer. |
text | A message to be passed to the exception hierarchy. |
alpha | A const pointer toward the alphabet that threw the exception. |
Definition at line 44 of file AlphabetExceptions.cpp.
References toString().
|
inlinevirtual |
Definition at line 133 of file AlphabetExceptions.h.
|
inlinevirtualinherited |
Get the alphabet that threw the exception.
Definition at line 65 of file AlphabetExceptions.h.
References bpp::AlphabetException::alphabet_.
|
virtual |
Get the integer that threw the exception.
Definition at line 48 of file AlphabetExceptions.cpp.
References i_.
|
privateinherited |
Definition at line 26 of file AlphabetExceptions.h.
Referenced by bpp::AlphabetException::getAlphabet(), and bpp::AlphabetException::operator=().
|
protected |
Definition at line 114 of file AlphabetExceptions.h.
Referenced by getBadInt().