-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patherrors.js
More file actions
31 lines (27 loc) · 947 Bytes
/
Copy patherrors.js
File metadata and controls
31 lines (27 loc) · 947 Bytes
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
/**
* Login Required Error
* Thrown when a user tries to access a resource that requires a login and not
* already authenticated
*/
export const LOGIN_REQUIRED = new Error("Login Required");
/**
* Invalid Credentials Error
* Thrown when a user tries to login with invalid credentials
*/
export const INVALID_CREDENTIALS = new Error("Invalid Credentials");
/**
* No Course Selected Error
* Thrown when a user tries to access a timetable without selecting a course
*/
export const NO_COURSES_SELECTED = new Error("No Courses Selected");
/**
* Too Many Courses Selected Error
* Thrown when a user tries to select more than eight course due to
* limitations set by https://teaching.brunel.ac.uk.
*/
export const TOO_MANY_COURSES = new Error("Too Many Courses");
/**
* Not Implimented Error
* Thrown when a user tries to access a resource that is not yet implimented
*/
export const NOT_IMPLIMENTED = new Error("Not Implimented");