bpp-seq3  3.0.0
bpp::EmptyContainerException Class Reference

Exception thrown when an empty container is found. More...

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

+ Inheritance diagram for bpp::EmptyContainerException:
+ Collaboration diagram for bpp::EmptyContainerException:

Public Member Functions

 EmptyContainerException (const std::string &text, const SequencedValuesContainer *container)
 Build a new EmptyContainerException object. More...
 
 EmptyContainerException (const EmptyContainerException &ece)
 
EmptyContainerExceptionoperator= (const EmptyContainerException &ece)
 
virtual ~EmptyContainerException ()
 
virtual const SequencedValuesContainergetContainer () const
 
const char * what () const noexcept override
 
const std::string & message () const noexcept
 

Private Attributes

const SequencedValuesContainercontainer_
 The empty container. More...
 
std::string message_
 

Detailed Description

Exception thrown when an empty container is found.

Definition at line 63 of file SequenceContainerExceptions.h.

Constructor & Destructor Documentation

◆ EmptyContainerException() [1/2]

bpp::EmptyContainerException::EmptyContainerException ( const std::string &  text,
const SequencedValuesContainer container 
)
inline

Build a new EmptyContainerException object.

Parameters
textA message to be passed to the exception hierarchy.
containerThe empty container.

Definition at line 79 of file SequenceContainerExceptions.h.

◆ EmptyContainerException() [2/2]

bpp::EmptyContainerException::EmptyContainerException ( const EmptyContainerException ece)
inline

Definition at line 83 of file SequenceContainerExceptions.h.

◆ ~EmptyContainerException()

virtual bpp::EmptyContainerException::~EmptyContainerException ( )
inlinevirtual

Definition at line 94 of file SequenceContainerExceptions.h.

Member Function Documentation

◆ getContainer()

virtual const SequencedValuesContainer* bpp::EmptyContainerException::getContainer ( ) const
inlinevirtual
Returns
The empty container.

Definition at line 100 of file SequenceContainerExceptions.h.

References container_.

◆ operator=()

EmptyContainerException& bpp::EmptyContainerException::operator= ( const EmptyContainerException ece)
inline

Definition at line 86 of file SequenceContainerExceptions.h.

References container_.

Member Data Documentation

◆ container_

const SequencedValuesContainer* bpp::EmptyContainerException::container_
private

The empty container.

Definition at line 70 of file SequenceContainerExceptions.h.

Referenced by getContainer(), and operator=().


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