bpp-seq3  3.0.0
bpp::SequenceNotFoundException Class Reference

Exception thrown when a sequence is not found The sequence not found exception base class. More...

#include <Bpp/Seq/Container/SequenceContainerExceptions.h>

+ Inheritance diagram for bpp::SequenceNotFoundException:
+ Collaboration diagram for bpp::SequenceNotFoundException:

Public Member Functions

 SequenceNotFoundException (const char *text, const char *seqId="")
 Build a new SequenceNotFoundException object. More...
 
 SequenceNotFoundException (const std::string &text, const std::string &seqId="")
 Build a new SequenceNotFoundException object. More...
 
virtual ~SequenceNotFoundException ()
 
virtual const std::string getSequenceId () const
 Get the id of the sequence that was to be found. More...
 
const char * what () const noexcept override
 
const std::string & message () const noexcept
 

Protected Attributes

const std::string id
 The id of the sequence that was to be found. More...
 

Private Attributes

std::string message_
 

Detailed Description

Exception thrown when a sequence is not found The sequence not found exception base class.

Definition at line 18 of file SequenceContainerExceptions.h.

Constructor & Destructor Documentation

◆ SequenceNotFoundException() [1/2]

bpp::SequenceNotFoundException::SequenceNotFoundException ( const char *  text,
const char *  seqId = "" 
)
inline

Build a new SequenceNotFoundException object.

Parameters
textA message to be passed to the exception hierarchy.
seqIdA the id of the sequence that was to be found.

Definition at line 34 of file SequenceContainerExceptions.h.

◆ SequenceNotFoundException() [2/2]

bpp::SequenceNotFoundException::SequenceNotFoundException ( const std::string &  text,
const std::string &  seqId = "" 
)
inline

Build a new SequenceNotFoundException object.

Parameters
textA message to be passed to the exception hierarchy.
seqIdA the id of the sequence that was to be found.

Definition at line 44 of file SequenceContainerExceptions.h.

◆ ~SequenceNotFoundException()

virtual bpp::SequenceNotFoundException::~SequenceNotFoundException ( )
inlinevirtual

Definition at line 49 of file SequenceContainerExceptions.h.

Member Function Documentation

◆ getSequenceId()

virtual const std::string bpp::SequenceNotFoundException::getSequenceId ( ) const
inlinevirtual

Get the id of the sequence that was to be found.

Returns
The id of the sequence that was to be found.

Definition at line 57 of file SequenceContainerExceptions.h.

References id.

Member Data Documentation

◆ id

const std::string bpp::SequenceNotFoundException::id
protected

The id of the sequence that was to be found.

Definition at line 25 of file SequenceContainerExceptions.h.

Referenced by getSequenceId().


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