/home/runner/work/HiCR/HiCR/include/hicr/core/exceptions.hpp Source File
HiCR
|
exceptions.hpp
Go to the documentation of this file.
67#define HICR_THROW_LOGIC(...) [[unlikely]] HiCR::throwException(HiCR::exceptions::exception_t::logic, __FILE__, __LINE__, __VA_ARGS__)
74#define HICR_THROW_RUNTIME(...) [[unlikely]] HiCR::throwException(HiCR::exceptions::exception_t::runtime, __FILE__, __LINE__, __VA_ARGS__)
81#define HICR_THROW_FATAL(...) [[unlikely]] HiCR::throwException(HiCR::exceptions::exception_t::fatal, __FILE__, __LINE__, __VA_ARGS__)
164__INLINE__ static void throwException [[noreturn]] (const exceptions::exception_t type, const char *fileName, const int lineNumber, const char *format, ...)
194 std::string outString = std::string("[HiCR] ") + typeString + std::string(" Exception: ") + std::string(outstr);
Definition exceptions.hpp:142
__INLINE__ FatalException(const char *const message)
Definition exceptions.hpp:150
Definition exceptions.hpp:96
__INLINE__ LogicException(const char *const message)
Definition exceptions.hpp:104
Definition exceptions.hpp:122
__INLINE__ RuntimeException(const char *const message)
Definition exceptions.hpp:130
Generated by