bpp-popgen3  3.0.0
bpp::LocusNotFoundException Class Reference

The LocusNotFoundException class. More...

#include <Bpp/PopGen/GeneralExceptions.h>

+ Inheritance diagram for bpp::LocusNotFoundException:
+ Collaboration diagram for bpp::LocusNotFoundException:

Public Member Functions

 LocusNotFoundException (const char *text, size_t id)
 Build the exception with a numerical identifier. More...
 
 LocusNotFoundException (const std::string &text, size_t id)
 Build the exception with a numerical identifier. More...
 
 LocusNotFoundException (const char *text, const std::string &id)
 Build the exception with a textual identifier. More...
 
 LocusNotFoundException (const std::string &text, const std::string &id)
 Build the exception with a textual identifier. More...
 
 ~LocusNotFoundException () 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 LocusNotFoundException class.

Definition at line 67 of file GeneralExceptions.h.

Constructor & Destructor Documentation

◆ LocusNotFoundException() [1/4]

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

Build the exception with a numerical identifier.

Definition at line 43 of file GeneralExceptions.cpp.

References toString().

◆ LocusNotFoundException() [2/4]

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

Build the exception with a numerical identifier.

Definition at line 48 of file GeneralExceptions.cpp.

References toString().

◆ LocusNotFoundException() [3/4]

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

Build the exception with a textual identifier.

Definition at line 53 of file GeneralExceptions.cpp.

◆ LocusNotFoundException() [4/4]

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

Build the exception with a textual identifier.

Definition at line 58 of file GeneralExceptions.cpp.

◆ ~LocusNotFoundException()

LocusNotFoundException::~LocusNotFoundException ( )
throw (
)

Definition at line 63 of file GeneralExceptions.cpp.

Member Function Documentation

◆ getIdentifier()

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

Return the value of the identifier as a string.

Reimplemented from bpp::BadIdentifierException.

Definition at line 65 of file GeneralExceptions.cpp.

References bpp::BadIdentifierException::getIdentifier().

Referenced by bpp::DataSet::addAlleleInfoByLocusName(), and bpp::DataSet::getPloidyByLocusName().

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: