11 static bool isOk(E) noexcept {
15 static const char* toString (E) noexcept {
16 return "NOT AVAILABLE";
63 bool isOk() const noexcept {
64 return Traits::isOk(m_error);
70 operator bool () const noexcept {
79 const char*
what() const noexcept {
88 inline Result<E> makeResult(E error) noexcept {
89 return Result<E>(error);
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
const char * what() const noexcept
Gets a textual description of the result.
Definition: Result.h:79
Result(E error) noexcept
Initializes result.
Definition: Result.h:38
E getError() const noexcept
Gets actual result value.
Definition: Result.h:49
bool isError() const noexcept
Checks for an error.
Definition: Result.h:56
Result() noexcept
Initializes result by default.
Definition: Result.h:43
R ErrorType
Result value enumeration type.
Definition: Result.h:32
bool isOk() const noexcept
Checks for a success.
Definition: Result.h:63