#![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 */
}