31 lines
657 B
Rust
31 lines
657 B
Rust
#![allow(unused, clippy::missing_docs_in_private_items)]
|
|
/// Error enum, use it with Result<YourSucessStruct, **ErrorCode**>
|
|
pub enum ErrorCode {
|
|
IncError,
|
|
OpenfileError,
|
|
ExecFileFormatError,
|
|
OutOfMemory,
|
|
|
|
OutOfDisk,
|
|
AlreadyInDirectory,
|
|
InexistFileError,
|
|
InexistDirectoryError,
|
|
NospaceInDirectory,
|
|
NotAFile,
|
|
NotADirectory,
|
|
DirectoryNotEmpty,
|
|
InvalidCounter,
|
|
|
|
/* Invalid typeId fields: */
|
|
InvalidSemaphoreId,
|
|
InvalidLockId,
|
|
InvalidConditionId,
|
|
InvalidFileId,
|
|
InvalidThreadId,
|
|
|
|
/* Other messages */
|
|
WrongFileEndianess,
|
|
NoAcia,
|
|
|
|
NumMsgError /* Must always be last */
|
|
} |