bpp-seq3  3.0.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 CoreSequenceInterface *seq)
 Build a new EmptySequenceException object. More...
 
virtual ~EmptySequenceException ()
 
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 be empty and it should not.

Definition at line 70 of file SequenceExceptions.h.

Constructor & Destructor Documentation

◆ EmptySequenceException()

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

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 80 of file SequenceExceptions.h.

◆ ~EmptySequenceException()

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

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