summaryrefslogtreecommitdiff
path: root/include/fud_status.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/fud_status.hpp')
-rw-r--r--include/fud_status.hpp66
1 files changed, 36 insertions, 30 deletions
diff --git a/include/fud_status.hpp b/include/fud_status.hpp
index 91048ac..d57a9c5 100644
--- a/include/fud_status.hpp
+++ b/include/fud_status.hpp
@@ -23,24 +23,26 @@ namespace fud {
enum class [[nodiscard]] FudStatus
{
Success = 0,
+ Partial,
+ Failure,
NullPointer,
- StringInvalid,
- ObjectInvalid,
- OperationInvalid,
- AllocFailure,
- DeallocFailure,
ArgumentInvalid,
+ VariantInvalid,
+ ObjectInvalid,
Utf8Invalid,
- Failure,
+ StringInvalid,
+ OperationInvalid,
+ AlreadyInitialized,
+ FormatInvalid,
+ RangeError,
+ IndexInvalid,
+ Exists,
NotFound,
- Aliased,
Empty,
- Partial,
Full,
- RangeError,
- VariantInvalid,
- BadArrayLength,
- FormatInvalid,
+ Aliased,
+ AllocFailure,
+ DeallocFailure,
NotImplemented,
NotSupported
};
@@ -50,6 +52,10 @@ constexpr const char* FudStatusToString(FudStatus status)
switch (status) {
case FudStatus::Success:
return "Success";
+ case FudStatus::Partial:
+ return "Partial";
+ case FudStatus::Failure:
+ return "Failure";
case FudStatus::NullPointer:
return "NullPointer";
case FudStatus::StringInvalid:
@@ -58,34 +64,34 @@ constexpr const char* FudStatusToString(FudStatus status)
return "ObjectInvalid";
case FudStatus::OperationInvalid:
return "OperationInvalid";
- case FudStatus::AllocFailure:
- return "AllocFailure";
- case FudStatus::DeallocFailure:
- return "DeallocFailure";
case FudStatus::ArgumentInvalid:
return "ArgumentInvalid";
case FudStatus::Utf8Invalid:
return "Utf8Invalid";
- case FudStatus::Failure:
- return "Failure";
- case FudStatus::NotFound:
- return "NotFound";
- case FudStatus::Aliased:
- return "Aliased";
- case FudStatus::Empty:
- return "Empty";
- case FudStatus::Partial:
- return "Partial";
- case FudStatus::Full:
- return "Full";
case FudStatus::RangeError:
return "RangeError";
case FudStatus::VariantInvalid:
return "VariantInvalid";
- case FudStatus::BadArrayLength:
- return "BadArrayLength";
case FudStatus::FormatInvalid:
return "FormatInvalid";
+ case FudStatus::AlreadyInitialized:
+ return "AlreadyInitialized";
+ case FudStatus::IndexInvalid:
+ return "IndexInvalid";
+ case FudStatus::Exists:
+ return "Exists";
+ case FudStatus::NotFound:
+ return "NotFound";
+ case FudStatus::Empty:
+ return "Empty";
+ case FudStatus::Full:
+ return "Full";
+ case FudStatus::Aliased:
+ return "Aliased";
+ case FudStatus::AllocFailure:
+ return "AllocFailure";
+ case FudStatus::DeallocFailure:
+ return "DeallocFailure";
case FudStatus::NotImplemented:
return "NotImplemented";
case FudStatus::NotSupported: