class
errora class type inspired by std::
Constructors, destructors, conversion operators
-
error(error_
type err, const std:: string& message) noexcept - constructor
-
template <typename... args_t>error(error_
type err, std:: format_string<args_t...> fmt, args_t && ... args) noexcept - constructor
Public functions
-
auto message() const → const std::
string& noexcept - get the string message of the error
-
auto value() const → error_
type noexcept - get the ljson::
error_type of the error - auto what() const → const char* noexcept
- get the string message of the error
Function documentation
ljson:: error:: error(error_ type err,
const std:: string& message) noexcept
constructor
Parameters | |
---|---|
err | holds the value of ljson:: |
message | the string message of the error |
template <typename... args_t>
ljson:: error:: error(error_ type err,
std:: format_string<args_t...> fmt,
args_t && ... args) noexcept
constructor
Template parameters | |
---|---|
args_t | the types of arguments for std:: |
Parameters | |
err | holds the value of ljson:: |
fmt | std:: |
args | the arguments for std:: |
const std:: string& ljson:: error:: message() const noexcept
get the string message of the error
Returns | get the string message of the error |
---|
error_ type ljson:: error:: value() const noexcept
get the ljson::
Returns | get the ljson:: |
---|