diff --git a/src/lib/error.hpp b/src/lib/error.hpp index 1d6099d..2cc55ef 100644 --- a/src/lib/error.hpp +++ b/src/lib/error.hpp @@ -46,8 +46,20 @@ struct ErrorOr { } }; +struct ErrorOrVoid { + bool isError; + uint8_t errorCode; + ErrorOrVoid() { + this->isError = false; + this->errorCode = 0; + } + ErrorOrVoid(bool isError, uint8_t errorCode) { + this->isError = isError; + this->errorCode = errorCode; + } +}; namespace ErrorCodes { // These are all arbitrary values used to assign error codes to different