Utopia  2
Framework for studying models of complex & adaptive systems.
Public Member Functions | Private Member Functions | List of all members
Utopia::KeyError Class Reference

For access to a dict-like structure with a bad key. More...

#include <exceptions.hh>

Inheritance diagram for Utopia::KeyError:
Inheritance graph
[legend]
Collaboration diagram for Utopia::KeyError:
Collaboration graph
[legend]

Public Member Functions

 KeyError (const std::string &key, const DataIO::Config &node, const std::string &prefix="")
 Construct a KeyError exception, which has a standardized what message. More...
 
- Public Member Functions inherited from Utopia::Exception
 Exception (const std::string &what_arg, const int exit_code_arg=1)
 Construct an Utopia-specific exception. More...
 
 Exception (const char *what_arg, const int exit_code_arg=1)
 Construct an Utopia-specific exception. More...
 

Private Member Functions

std::string generate_what_arg (std::string key, DataIO::Config node, std::string prefix)
 Generates the what argument for the key error. More...
 

Additional Inherited Members

- Public Attributes inherited from Utopia::Exception
const int exit_code
 The exit code to use when exiting due to this exception. More...
 

Detailed Description

For access to a dict-like structure with a bad key.

Constructor & Destructor Documentation

◆ KeyError()

Utopia::KeyError::KeyError ( const std::string &  key,
const DataIO::Config node,
const std::string &  prefix = "" 
)
inline

Construct a KeyError exception, which has a standardized what message.

Member Function Documentation

◆ generate_what_arg()

std::string Utopia::KeyError::generate_what_arg ( std::string  key,
DataIO::Config  node,
std::string  prefix 
)
inlineprivate

Generates the what argument for the key error.


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