40 #ifndef _SEQUENCECONTAINEREXCEPTIONS_H_ 41 #define _SEQUENCECONTAINEREXCEPTIONS_H_ 43 #include <Bpp/Exceptions.h> 48 class SequenceContainer;
73 Exception(
"SequenceNotFoundException: " +
std::string(text) +
"(" + seqId +
")"),
83 Exception(
"SequenceNotFoundException: " + text +
"(" + seqId +
")"),
122 Exception(
"EmptyContainerException: " + text),
130 Exception::operator=(ece);
148 #endif //_SEQUENCECONTAINEREXCEPTIONS_H_ Exception thrown when a sequence is not found The sequence not found exception base class...
Exception thrown when an empty container is found.
virtual ~EmptyContainerException()
This alphabet is used to deal NumericAlphabet.
const std::string id
The id of the sequence that was to be found.
SequenceNotFoundException(const std::string &text, const std::string &seqId="")
Build a new SequenceNotFoundException object.
EmptyContainerException(const std::string &text, const SequenceContainer *container)
Build a new EmptyContainerException object.
EmptyContainerException(const EmptyContainerException &ece)
virtual const std::string getSequenceId() const
Get the id of the sequence that was to be found.
virtual const SequenceContainer * getContainer() const
virtual ~SequenceNotFoundException()
EmptyContainerException & operator=(const EmptyContainerException &ece)
The SequenceContainer interface.
SequenceNotFoundException(const char *text, const char *seqId="")
Build a new SequenceNotFoundException object.
const SequenceContainer * container_
The empty container.