|
ReXGlue SDK
|
#include <rex/result.h>
Public Member Functions | |
| Error (ErrorCategory cat, std::string msg, int err_code=0) | |
| bool | IsSuccess () const noexcept |
| std::string | GetDescription () const |
Static Public Member Functions | |
| static Error | FromErrno (ErrorCategory cat, std::string msg, int errno_value) |
Public Attributes | |
| ErrorCategory | category = ErrorCategory::kNoError |
| std::string | message |
| int | code = 0 |
An error value carried by rex::Result.
|
inline |
Creates an error.
| err_code | Code from the platform or a library. |
|
inlinenodiscard |
|
inlinenodiscardnoexcept |
Reports whether the error is a success.
| int rex::Error::code = 0 |
Code from the platform or a library.