
/// Error enum, use it with Result<YourSucessStruct, **ErrorCode**>
pub enum ErrorCode {
    INC_ERROR,
    OPENFILE_ERROR,
    EXEC_FILE_FORMAT_ERROR,
    OUT_OF_MEMORY,

    OUT_OF_DISK,
    ALREADY_IN_DIRECTORY,
    INEXIST_FILE_ERROR,
    INEXIST_DIRECTORY_ERROR,
    NOSPACE_IN_DIRECTORY,
    NOT_A_FILE,
    NOT_A_DIRECTORY,
    DIRECTORY_NOT_EMPTY,
    INVALID_COUNTER,

    /* Invalid typeId fields: */
    INVALID_SEMAPHORE_ID,
    INVALID_LOCK_ID,
    INVALID_CONDITION_ID,
    INVALID_FILE_ID,
    INVALID_THREAD_ID,

    /* Other messages */
    WRONG_FILE_ENDIANESS,
    NO_ACIA,

    NUMMSGERROR /* Must always be last */
}