|
GridFire v0.7.0-alpha
General Purpose Nuclear Network
|
Exception class for debug-only errors. More...
#include <error_debug.h>
Public Member Functions | |
| DebugException (const std::string_view message, const std::source_location loc=std::source_location::current()) | |
Public Member Functions inherited from gridfire::exceptions::GridFireError | |
| GridFireError (std::string msg) | |
| const char * | what () const noexcept override |
Static Private Member Functions | |
| static std::string | format_error (std::string_view message, const std::source_location loc) |
Exception class for debug-only errors.
This exception is intended to be used for errors that should only occur during development and debugging. In release builds, attempts to throw this exception will result in a compilation error.
Example usage:
|
inlineexplicit |
|
inlinestaticprivate |