bpp-seq3  3.0.0
bpp::SequenceWithGapException Class Reference

Exception thrown when a sequence is found to have gap and it should not. More...

#include <Bpp/Seq/SequenceExceptions.h>

+ Inheritance diagram for bpp::SequenceWithGapException:
+ Collaboration diagram for bpp::SequenceWithGapException:

Public Member Functions

 SequenceWithGapException (const std::string &text, const CoreSequenceInterface *seq)
 Build a new SequenceWithGapException object. More...
 
virtual ~SequenceWithGapException ()
 
virtual const CoreSequenceInterfacegetSequence () const
 Get the sequence that threw the exception. More...
 
const char * what () const noexcept override
 
const std::string & message () const noexcept
 

Private Attributes

const CoreSequenceInterfacesequence_
 A pointer toward a sequence object. More...
 
std::string message_
 

Detailed Description

Exception thrown when a sequence is found to have gap and it should not.

Definition at line 90 of file SequenceExceptions.h.

Constructor & Destructor Documentation

◆ SequenceWithGapException()

bpp::SequenceWithGapException::SequenceWithGapException ( const std::string &  text,
const CoreSequenceInterface seq 
)
inline

Build a new SequenceWithGapException object.

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

Definition at line 100 of file SequenceExceptions.h.

◆ ~SequenceWithGapException()

virtual bpp::SequenceWithGapException::~SequenceWithGapException ( )
inlinevirtual

Definition at line 104 of file SequenceExceptions.h.

Member Function Documentation

◆ getSequence()

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

Get the sequence that threw the exception.

Returns
A const pointer toward the sequence.

Definition at line 64 of file SequenceExceptions.h.

References bpp::SequenceException::sequence_.

Member Data Documentation

◆ sequence_

const CoreSequenceInterface* bpp::SequenceException::sequence_
privateinherited

A pointer toward a sequence object.

Definition at line 30 of file SequenceExceptions.h.

Referenced by bpp::SequenceException::getSequence(), and bpp::SequenceException::operator=().


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