6 #ifndef UTILS_EXCEPTIONS_H 7 #define UTILS_EXCEPTIONS_H 10 #include <Utils/Ulog.h> 18 class NotImplementedError :
public std::logic_error
21 NotImplementedError() : std::logic_error{
"Function not implemented yet." } {}
24 class UnhandledConditionError :
public std::logic_error
27 UnhandledConditionError() : std::logic_error{
"Unhandled condition." } {}
30 class AuthenticationError :
public std::runtime_error
33 AuthenticationError(
const std::string &description) : std::runtime_error(description) {}
36 class OutOfBounds :
public std::out_of_range
39 OutOfBounds(
size_t x,
size_t y, std::string caller)
40 : std::out_of_range(
"Grid element index (" + std::
to_string(x) +
", " + std::
to_string(y) +
") out of bounds")
42 ulog::Crash(what(), caller);
std::string to_string(const glm::vec< N, genType, glm::highp > &vec, const std::string &delim=", ")
Converts the input vector into a string with predefined delimiter.
Definition: ExtGLM.h:87
Extensions to the standard libraries.
Definition: AtomicQueue.h:11