2023-03-01 16:55:17 +01:00
|
|
|
|
|
|
|
/// Error enum, use it with Result<YourSucessStruct, **ErrorCode**>
|
|
|
|
pub enum ErrorCode {
|
2023-03-09 14:00:42 +01:00
|
|
|
IncError,
|
|
|
|
OpenfileError,
|
|
|
|
ExecFileFormatError,
|
|
|
|
OutOfMemory,
|
2023-03-01 16:55:17 +01:00
|
|
|
|
2023-03-09 14:00:42 +01:00
|
|
|
OutOfDisk,
|
|
|
|
AlreadyInDirectory,
|
|
|
|
InexistFileError,
|
|
|
|
InexistDirectoryError,
|
|
|
|
NospaceInDirectory,
|
|
|
|
NotAFile,
|
|
|
|
NotADirectory,
|
|
|
|
DirectoryNotEmpty,
|
|
|
|
InvalidCounter,
|
2023-03-01 16:55:17 +01:00
|
|
|
|
|
|
|
/* Invalid typeId fields: */
|
2023-03-09 14:00:42 +01:00
|
|
|
InvalidSemaphoreId,
|
|
|
|
InvalidLockId,
|
|
|
|
InvalidConditionId,
|
|
|
|
InvalidFileId,
|
|
|
|
InvalidThreadId,
|
2023-03-01 16:55:17 +01:00
|
|
|
|
|
|
|
/* Other messages */
|
2023-03-09 14:00:42 +01:00
|
|
|
WrongFileEndianess,
|
|
|
|
NoAcia,
|
2023-03-01 16:55:17 +01:00
|
|
|
|
|
|
|
NUMMSGERROR /* Must always be last */
|
|
|
|
}
|