bpp-seq
2.2.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=0, const Alphabet *alpha2=0) | |
Build a new AlphabetMismatchException object. More... | |
AlphabetMismatchException (const AlphabetMismatchException &ame) | |
AlphabetMismatchException & | operator= (const AlphabetMismatchException &ame) |
virtual | ~AlphabetMismatchException () throw () |
std::vector< const Alphabet * > | getAlphabets () const |
Get the alphabets that do not match. More... | |
Private Attributes | |
const Alphabet * | alphabet1_ |
const Alphabet * | alphabet2_ |
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 157 of file AlphabetExceptions.h.
AlphabetMismatchException::AlphabetMismatchException | ( | const std::string & | text = "" , |
const Alphabet * | alpha1 = 0 , |
||
const Alphabet * | alpha2 = 0 |
||
) |
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 74 of file AlphabetExceptions.cpp.
|
inline |
Definition at line 173 of file AlphabetExceptions.h.
|
inlinevirtual |
Definition at line 182 of file AlphabetExceptions.h.
vector< const Alphabet * > AlphabetMismatchException::getAlphabets | ( | ) | const |
Get the alphabets that do not match.
Definition at line 79 of file AlphabetExceptions.cpp.
References alphabet1_, and alphabet2_.
|
inline |
Definition at line 174 of file AlphabetExceptions.h.
References alphabet1_, and alphabet2_.
|
private |
Definition at line 160 of file AlphabetExceptions.h.
Referenced by getAlphabets(), and operator=().
|
private |
Definition at line 160 of file AlphabetExceptions.h.
Referenced by getAlphabets(), and operator=().