bpp-seq  2.2.0
bpp::EmptySequenceException Class Reference

Exception thrown when a sequence is found to be empty and it should not. More...

#include <Bpp/Seq/SequenceExceptions.h>

+ Inheritance diagram for bpp::EmptySequenceException:
+ Collaboration diagram for bpp::EmptySequenceException:

Public Member Functions

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

Detailed Description

Exception thrown when a sequence is found to be empty and it should not.

Definition at line 99 of file SequenceExceptions.h.

Constructor & Destructor Documentation

◆ EmptySequenceException()

EmptySequenceException::EmptySequenceException ( const std::string &  text,
const Sequence seq = 0 
)

Build a new EmptySequenceException object.

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

Definition at line 54 of file SequenceExceptions.cpp.

◆ ~EmptySequenceException()

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

Definition at line 113 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: