burritos/src/kernel/mgerror.rs

31 lines
601 B
Rust
Raw Normal View History

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
NUMMSGERROR /* Must always be last */
}