Moved global error to lib and fuse to a unique one
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
Reference in New Issue
Block a user