bpp-seq3
3.0.0
|
Exception thrown when two alphabets do not match. More...
#include <Bpp/Seq/Alphabet/AlphabetExceptions.h>
Public Member Functions | |
AlphabetMismatchException (const std::string &text, const Alphabet *alpha1, const Alphabet *alpha2) | |
Build a new AlphabetMismatchException object. More... | |
AlphabetMismatchException (const std::string &text, std::shared_ptr< const Alphabet > alpha1, std::shared_ptr< const Alphabet > alpha2) | |
Build a new AlphabetMismatchException object. More... | |
AlphabetMismatchException (const AlphabetMismatchException &ame) | |
AlphabetMismatchException & | operator= (const AlphabetMismatchException &ame) |
virtual | ~AlphabetMismatchException () |
const Alphabet * | getFirstAlphabet () const |
Get the first alphabet. More... | |
const Alphabet * | getSecondAlphabet () const |
Get the second alphabet. More... | |
const char * | what () const noexcept override |
const std::string & | message () const noexcept |
Private Attributes | |
const Alphabet * | alphabet1_ |
const Alphabet * | alphabet2_ |
std::string | message_ |
Exception thrown when two alphabets do not match.
Typically, this may occur when you try to add a bad sequence to a container, or concatenate two kinds of sequences, and so on.
Definition at line 150 of file AlphabetExceptions.h.
AlphabetMismatchException::AlphabetMismatchException | ( | const std::string & | text, |
const Alphabet * | alpha1, | ||
const Alphabet * | alpha2 | ||
) |
Build a new AlphabetMismatchException object.
text | A message to be passed to the exception hierarchy. |
alpha1 | A const pointer toward the first alphabet. |
alpha2 | A const pointer toward the second alphabet, i.e. the one which does not match with the first. |
Definition at line 52 of file AlphabetExceptions.cpp.
AlphabetMismatchException::AlphabetMismatchException | ( | const std::string & | text, |
std::shared_ptr< const Alphabet > | alpha1, | ||
std::shared_ptr< const Alphabet > | alpha2 | ||
) |
Build a new AlphabetMismatchException object.
text | A message to be passed to the exception hierarchy. |
alpha1 | A const smart pointer toward the first alphabet. |
alpha2 | A const smart pointer toward the second alphabet, i.e. the one which does not match with the first. |
Definition at line 59 of file AlphabetExceptions.cpp.
|
inline |
Definition at line 182 of file AlphabetExceptions.h.
|
inlinevirtual |
Definition at line 197 of file AlphabetExceptions.h.
|
inline |
Get the first alphabet.
Definition at line 205 of file AlphabetExceptions.h.
References alphabet1_.
|
inline |
Get the second alphabet.
Definition at line 212 of file AlphabetExceptions.h.
References alphabet2_.
|
inline |
Definition at line 188 of file AlphabetExceptions.h.
References alphabet1_, and alphabet2_.
|
private |
Definition at line 154 of file AlphabetExceptions.h.
Referenced by getFirstAlphabet(), and operator=().
|
private |
Definition at line 155 of file AlphabetExceptions.h.
Referenced by getSecondAlphabet(), and operator=().