bpp-popgen3
3.0.0
|
The BadIdentifierException class. More...
#include <Bpp/PopGen/GeneralExceptions.h>
Public Member Functions | |
BadIdentifierException (const char *text, size_t id) | |
Build the exception with a numerical identifier. More... | |
BadIdentifierException (const std::string &text, size_t id) | |
Build the exception with a numerical identifier. More... | |
BadIdentifierException (const char *text, const std::string &id) | |
Build the exception with a textual identifier. More... | |
BadIdentifierException (const std::string &text, const std::string &id) | |
Build the exception with a textual identifier. More... | |
~BadIdentifierException () 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_ |
The BadIdentifierException class.
This exception is used when an identifier is not found. The identifier can be either a string or an integer but its value is stored as a string.
Definition at line 26 of file GeneralExceptions.h.
BadIdentifierException::BadIdentifierException | ( | const char * | text, |
size_t | id | ||
) |
Build the exception with a numerical identifier.
Definition at line 14 of file GeneralExceptions.cpp.
References toString().
BadIdentifierException::BadIdentifierException | ( | const std::string & | text, |
size_t | id | ||
) |
Build the exception with a numerical identifier.
Definition at line 19 of file GeneralExceptions.cpp.
References toString().
BadIdentifierException::BadIdentifierException | ( | const char * | text, |
const std::string & | id | ||
) |
Build the exception with a textual identifier.
Definition at line 24 of file GeneralExceptions.cpp.
BadIdentifierException::BadIdentifierException | ( | const std::string & | text, |
const std::string & | id | ||
) |
Build the exception with a textual identifier.
Definition at line 29 of file GeneralExceptions.cpp.
BadIdentifierException::~BadIdentifierException | ( | ) | ||
throw | ( | |||
) |
Definition at line 34 of file GeneralExceptions.cpp.
|
virtual |
Return the value of the identifier as a string.
Reimplemented in bpp::GroupNotFoundException, bpp::IndividualNotFoundException, bpp::LocalityNotFoundException, bpp::AlleleNotFoundException, and bpp::LocusNotFoundException.
Definition at line 36 of file GeneralExceptions.cpp.
References id_.
Referenced by bpp::DataSet::addAlleleInfoByLocusName(), bpp::AnalyzedLoci::addAlleleInfoByLocusName(), bpp::DataSet::addAlleleInfoByLocusPosition(), bpp::AnalyzedLoci::addAlleleInfoByLocusPosition(), bpp::DataSet::addEmptyIndividualToGroup(), bpp::Group::addIndividualSequenceAtPosition(), bpp::DataSet::addIndividualSequenceInGroup(), bpp::DataSet::addIndividualToGroup(), bpp::LocusNotFoundException::getIdentifier(), bpp::AlleleNotFoundException::getIdentifier(), bpp::LocalityNotFoundException::getIdentifier(), bpp::IndividualNotFoundException::getIdentifier(), and bpp::GroupNotFoundException::getIdentifier().
|
protected |
Definition at line 59 of file GeneralExceptions.h.
Referenced by getIdentifier().