Loading...
Searching...
No Matches
PLMD::ExceptionRegisterError Class Reference

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

#include <RegisterBase.h>

Inheritance diagram for PLMD::ExceptionRegisterError:

Public Member Functions

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

Private Attributes

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

Detailed Description

Class representing an error in a register.

Member Function Documentation

◆ Exception()

PLMD::lepton::Exception::Exception ( const std::string & msg)
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: