palimpsest v3.0.0
Loading...
Searching...
No Matches
palimpsest::exceptions::KeyError Class Reference

Requested dictionary key is not found. More...

#include <KeyError.h>

Public Member Functions

 KeyError (const std::string &key, const std::string &file, unsigned line, const std::string &message)
 Create a key error. More...
 
 ~KeyError () throw ()
 Empty destructor. More...
 
const std::string & key () const throw ()
 Key that was not found. More...
 
- Public Member Functions inherited from palimpsest::exceptions::PalimpsestError
 PalimpsestError (const std::string &file, unsigned line, const std::string &message)
 Create a new error. More...
 
 PalimpsestError (const PalimpsestError &other, const std::string &extra_message)
 Copy an existing error, adding to the error message. More...
 
 ~PalimpsestError () throw ()
 Empty destructor. More...
 
const char * what () const throw ()
 Error message. More...
 

Detailed Description

Requested dictionary key is not found.

Definition at line 13 of file KeyError.h.

Constructor & Destructor Documentation

◆ KeyError()

palimpsest::exceptions::KeyError::KeyError ( const std::string &  key,
const std::string &  file,
unsigned  line,
const std::string &  message 
)
inline

Create a key error.

Parameters
[in]keyKey that was not found.
[in]fileSource file of the instruction that threw the error.
[in]lineLine of code in that file where the throw originates from.
[in]messageError message.

Definition at line 22 of file KeyError.h.

◆ ~KeyError()

palimpsest::exceptions::KeyError::~KeyError ( )
throw (
)
inline

Empty destructor.

Definition at line 30 of file KeyError.h.

Member Function Documentation

◆ key()

const std::string & palimpsest::exceptions::KeyError::key ( ) const
throw (
)
inline

Key that was not found.

Definition at line 33 of file KeyError.h.


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