// This file contains the error codes that are used throughout this program #ifndef ERRORS_H #define ERRORS_H //generic error codes #define SUCCESSFUL 0 // time slot error codes #define T_S_ERR_START_FINISH 100 // start time later than finish time // reservations error codes #define RES_ERR_START_FINISH 200 // finish date earlier than start date #define RES_ERR_CONFLICT 201 // proposed reservation conflicts with // existing reservations #define RES_ERR_NOT_FOUND 202 // didn't find reservation in list #define RES_ERR_NO_NAME 203 // the name field was left blank // fleet error codes #define FLEET_ERR_NOT_FOUND 300 // didn't find aircraft in list // data file i/o error codes #define FILE_ERR_READ 400 // unable to open data file for read #define FILE_ERR_WRITE 401 // unable to open data file for write // aircraft error codes #define AC_ERR_NO_NAME 500 // nothing entered for ac name #define AC_ERR_NO_DESC 501 // nothing entered for ac description #define AC_ERR_DUP_NAME 502 // new ac name duplicates existing name extern char fatal_err_function[]; extern char fatal_err_msg[]; extern char warning_msg[]; extern void fatal_error(); #endif