2023-03-22 16:03:36 +01:00
|
|
|
#![allow(unused, clippy::missing_docs_in_private_items)]
|
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
|
|
|
|
2023-03-22 16:03:36 +01:00
|
|
|
NumMsgError /* Must always be last */
|
2023-03-01 16:55:17 +01:00
|
|
|
}
|