|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <types.h>
Public Member Functions | |
| constexpr | Error ()=default |
| constexpr | Error (ErrorCode c, const char *msg="") |
| constexpr bool | isOk () const |
| constexpr bool | isError () const |
Public Attributes | |
| ErrorCode | code {ErrorCode::Ok} |
| const char * | message {""} |
Outcome code and optional diagnostic returned by a fallible operation.
|
constexprdefault |
Construct a successful outcome, which is the default state.
|
inlineconstexpr |
Construct an outcome from a category and optional diagnostic.
|
inlineconstexpr |
Return true for every non-success category.
|
inlineconstexpr |
Return true only for ErrorCode::Ok.
| ErrorCode ersa::Error::code {ErrorCode::Ok} |
Machine-readable result used for caller branching.
| const char* ersa::Error::message {""} |
Non-owning diagnostic string; implementations should use stable storage.