bpp-seq  2.2.0
bpp::SequenceNotAlignedException Class Reference

Exception thrown when a sequence is not align with others. More...

#include <Bpp/Seq/SequenceExceptions.h>

+ Inheritance diagram for bpp::SequenceNotAlignedException:
+ Collaboration diagram for bpp::SequenceNotAlignedException:

Public Member Functions

 SequenceNotAlignedException (const std::string &text, const Sequence *seq)
 Build a new SequenceNotAlignedException object. More...
 
virtual ~SequenceNotAlignedException () throw ()
 
virtual const SequencegetSequence () const
 Get the sequence that threw the exception. More...
 

Detailed Description

Exception thrown when a sequence is not align with others.

Typically, this may occur when you try to add a bad sequence to a site container.

Definition at line 141 of file SequenceExceptions.h.

Constructor & Destructor Documentation

◆ SequenceNotAlignedException()

SequenceNotAlignedException::SequenceNotAlignedException ( const std::string &  text,
const Sequence seq 
)

Build a new SequenceNotAlignedException object.

Parameters
textA message to be passed to the exception hierarchy.
seqA const pointer toward the sequence that threw the exception.

Definition at line 64 of file SequenceExceptions.cpp.

◆ ~SequenceNotAlignedException()

virtual bpp::SequenceNotAlignedException::~SequenceNotAlignedException ( )
throw (
)
inlinevirtual

Definition at line 155 of file SequenceExceptions.h.

Member Function Documentation

◆ getSequence()

virtual const Sequence* bpp::SequenceException::getSequence ( ) const
inlinevirtualinherited

Get the sequence that threw the exception.

Returns
A const pointer toward the sequence.

Definition at line 93 of file SequenceExceptions.h.

References bpp::SequenceException::sequence_.


The documentation for this class was generated from the following files: