blob: 9d3b94f5f56dc10fbe490b255b604171ff15b7fc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef HEADER_SERVICES_STATUSCODE
#define HEADER_SERVICES_STATUSCODE
/*! \file StatusCode.h
* \brief Stores declaration of enum StatusCode
*/
/*! \brief Used for communication between Services and what uses them
*
* Most functions in Services return a StatusCode.
*
* Those starting with W should be considered Warning, and those starting with E should be considered Errors.
*/
enum StatusCode {
Success,
W_TicketHadNotBeenReserved,
E_FileCouldNotBeOpened,
E_HallDoesntExist,
E_EventWillOverlap,
E_EventDoesNotExist,
E_InvalidSeat,
E_TicketAlreadyBought,
E_TicketAlreadyReserved,
E_ReservationDoesNotExist,
E_WrongReservationPassword,
};
#endif
|