bpp-popgen  3.0.0
bpp::BadIdentifierException Class Reference

The BadIdentifierException class. More...

#include <Bpp/PopGen/GeneralExceptions.h>

+ Inheritance diagram for bpp::BadIdentifierException:
+ Collaboration diagram for bpp::BadIdentifierException:

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_
 

Detailed Description

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.

Author
Sylvain Gaillard

Definition at line 61 of file GeneralExceptions.h.

Constructor & Destructor Documentation

◆ BadIdentifierException() [1/4]

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

Build the exception with a numerical identifier.

Definition at line 49 of file GeneralExceptions.cpp.

References toString().

◆ BadIdentifierException() [2/4]

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

Build the exception with a numerical identifier.

Definition at line 54 of file GeneralExceptions.cpp.

References toString().

◆ BadIdentifierException() [3/4]

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

Build the exception with a textual identifier.

Definition at line 59 of file GeneralExceptions.cpp.

◆ BadIdentifierException() [4/4]

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

Build the exception with a textual identifier.

Definition at line 64 of file GeneralExceptions.cpp.

◆ ~BadIdentifierException()

BadIdentifierException::~BadIdentifierException ( )
throw (
)

Definition at line 69 of file GeneralExceptions.cpp.

Member Function Documentation

◆ getIdentifier()

Member Data Documentation

◆ id_

const std::string bpp::BadIdentifierException::id_
protected

Definition at line 94 of file GeneralExceptions.h.

Referenced by getIdentifier().


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