5 #ifndef BPP_SEQ_SEQUENCEEXCEPTIONS_H
6 #define BPP_SEQ_SEQUENCEEXCEPTIONS_H
40 Exception(
"SequenceException: " + text + (seq ?
"(" + seq->getName() +
")" : std::string(
""))),
51 Exception::operator=(se);
The core sequence interface.
Exception thrown when a sequence is found to be empty and it should not.
virtual ~EmptySequenceException()
EmptySequenceException(const std::string &text, const CoreSequenceInterface *seq)
Build a new EmptySequenceException object.
The sequence exception base class.
SequenceException(const std::string &text, const CoreSequenceInterface *seq)
Build a new SequenceException object.
SequenceException(const SequenceException &se)
SequenceException & operator=(const SequenceException &se)
virtual ~SequenceException()
virtual const CoreSequenceInterface * getSequence() const
Get the sequence that threw the exception.
const CoreSequenceInterface * sequence_
A pointer toward a sequence object.
Exception thrown when a sequence is not align with others.
virtual ~SequenceNotAlignedException()
SequenceNotAlignedException(const std::string &text, const CoreSequenceInterface *seq)
Build a new SequenceNotAlignedException object.
Exception thrown when a sequence is found to have gap and it should not.
virtual ~SequenceWithGapException()
SequenceWithGapException(const std::string &text, const CoreSequenceInterface *seq)
Build a new SequenceWithGapException object.
This alphabet is used to deal NumericAlphabet.