bpp-seq3
3.0.0
|
The alphabet exception base class. More...
#include <Bpp/Seq/Alphabet/AlphabetExceptions.h>
Public Member Functions | |
AlphabetException (const std::string &text, const Alphabet *alpha) | |
Build a new AlphabetException object. More... | |
AlphabetException (const std::string &text, std::shared_ptr< const Alphabet > alpha) | |
Build a new AlphabetException object. More... | |
AlphabetException (const AlphabetException &ae) | |
AlphabetException & | operator= (const AlphabetException &ae) |
virtual | ~AlphabetException () |
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 |
Private Attributes | |
const Alphabet * | alphabet_ |
std::string | message_ |
The alphabet exception base class.
Definition at line 22 of file AlphabetExceptions.h.
AlphabetException::AlphabetException | ( | const std::string & | text, |
const Alphabet * | alpha | ||
) |
Build a new AlphabetException object.
text | A message to be passed to the exception hierarchy. |
alpha | A const pointer toward the alphabet that threw the exception. |
Definition at line 18 of file AlphabetExceptions.cpp.
AlphabetException::AlphabetException | ( | const std::string & | text, |
std::shared_ptr< const Alphabet > | alpha | ||
) |
Build a new AlphabetException object.
text | A message to be passed to the exception hierarchy. |
alpha | A const pointer toward the alphabet that threw the exception. |
Definition at line 22 of file AlphabetExceptions.cpp.
|
inline |
Definition at line 45 of file AlphabetExceptions.h.
|
inlinevirtual |
Definition at line 57 of file AlphabetExceptions.h.
|
inlinevirtual |
Get the alphabet that threw the exception.
Definition at line 65 of file AlphabetExceptions.h.
References alphabet_.
|
inline |
Definition at line 50 of file AlphabetExceptions.h.
References alphabet_.
|
private |
Definition at line 26 of file AlphabetExceptions.h.
Referenced by getAlphabet(), and operator=().