Moved global error to lib and fuse to a unique one

This commit is contained in:
2025-01-12 00:37:57 +01:00
parent c0e8b07025
commit 955aff0d09
16 changed files with 83 additions and 98 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ pub const CPU_CORE = 16;
// Debug
pub const PRINT_STATE = false;
pub const DONT_SEND = false;
pub const DONT_SEND = true;
pub const DONT_SEND_ERROR = false;
pub const RESET_LOG_AT_RESTART = false; // If true, will reset the log file at the start of the db, otherwise just keep adding to it
+31
View File
@@ -0,0 +1,31 @@
pub const ZipponError = error{
SchemaFileNotFound,
SchemaNotConform,
DATAFolderNotFound,
StructFolderNotFound,
CantMakeDir,
CantMakeFile,
CantOpenDir,
CantOpenFile,
StreamError,
ReadError,
InvalidUUID,
InvalidDate,
InvalidFileIndex,
DirIterError,
FileStatError,
DeleteFileError,
RenameFileError,
ZipponDataError,
AllocEncodError,
MemoryError,
SynthaxError,
ThreadError,
CantWriteEntity,
WriteError,
ConditionError,
ParsingValueError,
MemberNotFound,
MemberMissing,
StructNotFound,
};