Public Member Functions | Private Attributes | List of all members
PLMD::ExceptionRegisterError Class Reference

Class representing an error in a register. More...

#include <RegisterBase.h>

Inheritance diagram for PLMD::ExceptionRegisterError:
Inheritance graph
[legend]

Public Member Functions

 Exception (const std::string &message)
 
const std::string & getMissingKey () const
 Returns the missing key. More...
 
template<typename T >
ExceptionRegisterErroroperator<< (const T &x)
 
ExceptionRegisterErrorsetMissingKey (std::string_view key)
 Sets the missing key. More...
 
const char * what () const throw ()
 

Private Attributes

std::string message
 
std::string missingKey
 The missing key. More...
 

Detailed Description

Class representing an error in a register.

Member Function Documentation

◆ Exception()

PLMD::lepton::Exception::Exception
inline

◆ getMissingKey()

const std::string& PLMD::ExceptionRegisterError::getMissingKey ( ) const
inline

Returns the missing key.

◆ operator<<()

template<typename T >
ExceptionRegisterError& PLMD::ExceptionRegisterError::operator<< ( const T &  x)
inline

◆ setMissingKey()

ExceptionRegisterError& PLMD::ExceptionRegisterError::setMissingKey ( std::string_view  key)
inline

Sets the missing key.

Parameters
keyThe missing key
Returns
This exception

ExceptionRegisterError can be used as a builder pattern: throw ExceptionRegisterError().setMissingKey(key);

the key can be retrieved with ExceptionRegisterError::getMissingKey()

◆ what()

const char* PLMD::lepton::Exception::what ( ) const
throw (
)
inlineinherited

Member Data Documentation

◆ message

std::string PLMD::lepton::Exception::message
privateinherited

◆ missingKey

std::string PLMD::ExceptionRegisterError::missingKey
private

The missing key.


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