Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Services / StatusCode.h
blob: 3813e875d649d61e611a45d01f0650d74d33d14d (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
#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_TicketAlreadyBought,
	E_TicketAlreadyReserved,
	E_ReservationDoesNotExist,
	E_WrongReservationPassword,
};

#endif