bpp-popgen3  3.0.0
bpp::LocalityNotFoundException Class Reference

The LocalityNotFoundException class. More...

#include <Bpp/PopGen/GeneralExceptions.h>

+ Inheritance diagram for bpp::LocalityNotFoundException:
+ Collaboration diagram for bpp::LocalityNotFoundException:

Public Member Functions

 LocalityNotFoundException (const char *text, size_t id)
 Build the exception with a numerical identifier. More...
 
 LocalityNotFoundException (const std::string &text, size_t id)
 Build the exception with a numerical identifier. More...
 
 LocalityNotFoundException (const char *text, const std::string &id)
 Build the exception with a textual identifier. More...
 
 LocalityNotFoundException (const std::string &text, const std::string &id)
 Build the exception with a textual identifier. More...
 
 ~LocalityNotFoundException () throw ()
 
virtual const std::string getIdentifier () const
 Return the value of the identifier as a string. More...
 
const char * what () const noexcept override
 
const std::string & message () const noexcept
 

Protected Attributes

const std::string id_
 

Private Attributes

std::string message_
 

Detailed Description

The LocalityNotFoundException class.

Definition at line 147 of file GeneralExceptions.h.

Constructor & Destructor Documentation

◆ LocalityNotFoundException() [1/4]

LocalityNotFoundException::LocalityNotFoundException ( const char *  text,
size_t  id 
)

Build the exception with a numerical identifier.

Definition at line 101 of file GeneralExceptions.cpp.

References toString().

◆ LocalityNotFoundException() [2/4]

LocalityNotFoundException::LocalityNotFoundException ( const std::string &  text,
size_t  id 
)

Build the exception with a numerical identifier.

Definition at line 106 of file GeneralExceptions.cpp.

References toString().

◆ LocalityNotFoundException() [3/4]

LocalityNotFoundException::LocalityNotFoundException ( const char *  text,
const std::string &  id 
)

Build the exception with a textual identifier.

Definition at line 111 of file GeneralExceptions.cpp.

◆ LocalityNotFoundException() [4/4]

LocalityNotFoundException::LocalityNotFoundException ( const std::string &  text,
const std::string &  id 
)

Build the exception with a textual identifier.

Definition at line 116 of file GeneralExceptions.cpp.

◆ ~LocalityNotFoundException()

LocalityNotFoundException::~LocalityNotFoundException ( )
throw (
)

Definition at line 121 of file GeneralExceptions.cpp.

Member Function Documentation

◆ getIdentifier()

const std::string LocalityNotFoundException::getIdentifier ( ) const
virtual

Return the value of the identifier as a string.

Reimplemented from bpp::BadIdentifierException.

Definition at line 123 of file GeneralExceptions.cpp.

References bpp::BadIdentifierException::getIdentifier().

Referenced by bpp::DataSet::setIndividualLocalityInGroupByName().

Member Data Documentation

◆ id_

const std::string bpp::BadIdentifierException::id_
protectedinherited

Definition at line 59 of file GeneralExceptions.h.

Referenced by bpp::BadIdentifierException::getIdentifier().


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