1
Fork 0
This repository has been archived on 2022-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
UOC_PP20212_PR/UOC20212/UOCVaccine/include/error.h
2022-04-01 15:58:20 +02:00

23 lines
No EOL
779 B
C

#ifndef __UOCCONTACTS_ERROR__H
#define __UOCCONTACTS_ERROR__H
// Define error codes
enum _tApiError
{
E_SUCCESS = 0, // No error
E_NOT_IMPLEMENTED = -1, // Called method is not implemented
E_FILE_NOT_FOUND = -2, // File not found
E_PERSON_NOT_FOUND = -3, // Person not found
E_INVALID_ENTRY_TYPE = -4, // Invalid entry type
E_INVALID_ENTRY_FORMAT = -5, // Invalid entry format
E_DUPLICATED_PERSON = -6, // Duplicated person
E_MEMORY_ERROR = -7, // Memory error
E_VACCINE_NOT_FOUND = -8, // Vaccine not found
E_HEALTH_CENTER_NOT_FOUND = -9, // Health Center not found
E_LOT_NOT_FOUND = -10, // Vaccine lot not found
};
// Define an error type
typedef enum _tApiError tApiError;
#endif // __UOCCONTACTS_ERRORS__H