burritos/src/kernel/mgerror.rs

31 lines
657 B
Rust
Raw Normal View History

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 {
IncError,
OpenfileError,
ExecFileFormatError,
OutOfMemory,
2023-03-01 16:55:17 +01:00
OutOfDisk,
AlreadyInDirectory,
InexistFileError,
InexistDirectoryError,
NospaceInDirectory,
NotAFile,
NotADirectory,
DirectoryNotEmpty,
InvalidCounter,
2023-03-01 16:55:17 +01:00
/* Invalid typeId fields: */
InvalidSemaphoreId,
InvalidLockId,
InvalidConditionId,
InvalidFileId,
InvalidThreadId,
2023-03-01 16:55:17 +01:00
/* Other messages */
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
}