File include/brisk/core/Exceptions.hpp
¶
Exception
class¶
template <typename Base> Exception
ExceptionA generic templated exception class that extends standard exceptions.
This class allows for creating exceptions with formatted error messages. It supports any base class derived
from std::exception
.
Template param Base
The base exception type, which must derive from std::exception
.
Exception<Base>
function (Exception::Exception<Base>
)¶
Exception(std::string str) : Base(std::move(str))
Constructs an exception with a message string.
Param str
The error message string.
Exception(const char *str) : Base(str)
Constructs an exception with a message as a C-string.
Param str
The error message as a C-string.
template <typename... T>
Exception(fmt::format_string<T...> fmt, T &&...args)
: Base(fmt::format(std::move(fmt),
std::forward<T>(args)...))
Constructs an exception with a formatted error message.
Param fmt
The format string.
Param args
Arguments to be formatted.
ENotImplemented
class¶
ENotImplemented
ENotImplementedException for indicating unimplemented functionality.
This class represents a logic error and extends std::logic_error
.
ERuntime
class¶
ERuntime
ERuntimeException for runtime errors.
This class represents a runtime error and extends std::runtime_error
.
ERange
class¶
ERange
ERangeException for range errors.
This class represents an out-of-range error and extends std::range_error
.
ELogic
class¶
ELogic
ELogicException for logical errors.
This class represents a logic error and extends std::logic_error
.
EArgument
class¶
EArgument
EArgumentException for invalid arguments.
This class represents an invalid argument error and extends std::invalid_argument
.
Auto-generated from sources, Revision , https://github.com/brisklib/brisk/blob//include/brisk/