9 static bool isOk(E) noexcept {
13 static const char* toString(E) noexcept {
14 return "NOT AVAILABLE";
62 bool isOk() const noexcept {
63 return Traits::isOk(m_error);
69 operator bool() const noexcept {
80 operator int() const noexcept = delete;
87 const
char*
what() const noexcept {
96 inline Result<E> makeResult(E error) noexcept {
97 return Result<E>(error);
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
const char * what() const noexcept
Gets a textual description of the result.
Definition: Result.h:87
Result(E error) noexcept
Initializes result.
Definition: Result.h:35
E getError() const noexcept
Gets actual result value.
Definition: Result.h:48
bool isError() const noexcept
Checks for an error.
Definition: Result.h:55
Result() noexcept
Initializes result by default.
Definition: Result.h:41
Error
Image error codes.
Definition: Image.h:79
bool isOk() const noexcept
Checks for a success.
Definition: Result.h:62