25 #ifndef TASKOLIB_EXCEPTIONS_H_
26 #define TASKOLIB_EXCEPTIONS_H_
72 class Error :
public std::runtime_error
76 :
std::runtime_error(msg)
81 :
std::runtime_error(msg)
91 return (std::strcmp(lhs.what(), rhs.what()) == 0)
92 && lhs.index_ == rhs.index_;
Declaration of the StepIndex type.
An exception class carrying an error message and, optionally, the index of the step in which the erro...
Definition: exceptions.h:73
OptionalStepIndex get_index() const
Return the associated step index.
Definition: exceptions.h:86
OptionalStepIndex index_
Definition: exceptions.h:102
friend bool operator==(const Error &lhs, const Error &rhs) noexcept
Determine if two Error objects have the same content.
Definition: exceptions.h:89
Error(const std::string &msg, OptionalStepIndex opt_step_index=gul14::nullopt)
Definition: exceptions.h:75
Error(const char *msg, OptionalStepIndex opt_step_index=gul14::nullopt)
Definition: exceptions.h:80
friend bool operator!=(const Error &lhs, const Error &rhs) noexcept
Determine if two Error objects have different content.
Definition: exceptions.h:96
Definition: VariableName.h:154
Namespace task contains all Taskolib functions and classes.
Definition: CommChannel.h:33
gul14::optional< StepIndex > OptionalStepIndex
An optional step index (gul14::optional<StepIndex>).
Definition: StepIndex.h:37