7 #ifndef CORE_EXCEPTIONS_H_
8 #define CORE_EXCEPTIONS_H_
24 const char* what()
const noexcept
override {
25 return "The key was not recognized in these settings.";
34 const char* what()
const noexcept
override {
35 return "The value did not match the type defined by the given key.";
44 const char* what()
const noexcept
override {
45 return "No class with the requested name is implemented.";
54 const char* what()
const noexcept
override {
55 return "This module does not provide the requested interface..";
64 const char* what()
const noexcept
final {
65 return "State pointer does not have a compatible underlying type.";
76 : std::runtime_error(
"Calculator cannot calculate required properties.") {
Exception thrown when a problem arises in the calculator initialization.
Definition: Exceptions.h:95
Exception thrown when a calculation is unsuccessful.
Definition: Exceptions.h:116
An Exception for an error when generating classes through a module-interface.
Definition: Exceptions.h:43
Base class for exceptions thrown during calculations.
Definition: Exceptions.h:84
An Exception for an error when handling values in settings.
Definition: Exceptions.h:33
CalculationException(const std::string &s)
Definition: Exceptions.h:87
Exception thrown when one requires properties from a calculation which cannot be calculated.
Definition: Exceptions.h:73
Exception thrown for errors in state saving / resetting.
Definition: Exceptions.h:126
Exception to be thrown if the state cannot be cast to the desired type.
Definition: Exceptions.h:63
An Exception for an error when a function in a module-interface is not implemented.
Definition: Exceptions.h:53
Exception thrown when launching a calculation with an empty structure.
Definition: Exceptions.h:105
An Exception for an error when handling keys in settings.
Definition: Exceptions.h:23