|
| | error_info () |
| |
| | error_info (const std::string &msg) |
| | Construct with message only.
|
| |
| | error_info (int c, const std::string &msg, const std::string &mod="") |
| | Construct with code, message and optional module.
|
| |
| | error_info (int c, const std::string &msg, const std::string &mod, const std::string &det) |
| | Construct with code, message, module and details.
|
| |
| template<typename Enum , typename std::enable_if_t< std::is_enum_v< Enum >, int > = 0> |
| | error_info (Enum c, std::string msg, std::string mod="", std::optional< std::string > det=std::nullopt) |
| | Construct from strongly-typed enum error codes.
|
| |
| bool | operator== (const error_info &other) const |
| |
| bool | operator!= (const error_info &other) const |
| |
| | error_info (const typed_error_code &ec) |
| | Construct from the new category-based typed_error_code type.
|
| |
| | error_info () |
| |
| | error_info (const std::string &msg) |
| | Construct with message only.
|
| |
| | error_info (int c, const std::string &msg, const std::string &mod="") |
| | Construct with code, message and optional module.
|
| |
| | error_info (int c, const std::string &msg, const std::string &mod, const std::string &det) |
| | Construct with code, message, module and details.
|
| |
| template<typename Enum , typename std::enable_if_t< std::is_enum_v< Enum >, int > = 0> |
| | error_info (Enum c, std::string msg, std::string mod="", std::optional< std::string > det=std::nullopt) |
| | Construct from strongly-typed enum error codes.
|
| |
| bool | operator== (const error_info &other) const |
| |
| bool | operator!= (const error_info &other) const |
| |
Standard error information used by Result<T>.
- Examples
- executor_example.cpp, and result_example.cpp.
Definition at line 106 of file core.cppm.
template<typename Enum , typename std::enable_if_t< std::is_enum_v< Enum >, int > = 0>
| kcenon::common::error_info::error_info |
( |
Enum | c, |
|
|
std::string | msg, |
|
|
std::string | mod = "", |
|
|
std::optional< std::string > | det = std::nullopt ) |
|
inline |
Construct from strongly-typed enum error codes.
Enables database_system/network_system enums to be passed directly without manual static_cast noise.
Definition at line 109 of file core.h.
111 :
code(
static_cast<int>(c)),