2018-05-12 18:19:51 +02:00
|
|
|
export enum ErrorCodes {
|
2018-05-28 20:03:12 +02:00
|
|
|
NOT_AUTHENTICATED = 1,
|
|
|
|
ALREADY_AUTHENTICATED = 2,
|
|
|
|
NOT_AUTHORISED = 3,
|
|
|
|
PERMISSION_DENIED = 4,
|
|
|
|
CREDENTIAL_NOT_FOUND = 5,
|
2016-03-19 18:31:42 +02:00
|
|
|
|
|
|
|
|
2018-05-28 20:03:12 +02:00
|
|
|
USER_CREATION_ERROR = 6,
|
2016-03-19 18:31:42 +02:00
|
|
|
|
|
|
|
|
2018-05-28 20:03:12 +02:00
|
|
|
GENERAL_ERROR = 7,
|
|
|
|
THUMBNAIL_GENERATION_ERROR = 8,
|
|
|
|
SERVER_ERROR = 9,
|
2016-07-07 12:26:36 +02:00
|
|
|
|
2018-05-28 20:03:12 +02:00
|
|
|
USER_MANAGEMENT_DISABLED = 10,
|
2017-07-03 19:17:49 +02:00
|
|
|
|
2018-05-28 20:03:12 +02:00
|
|
|
INPUT_ERROR = 11,
|
2016-05-09 17:04:56 +02:00
|
|
|
|
2018-05-28 20:03:12 +02:00
|
|
|
SETTINGS_ERROR = 12
|
2016-03-19 10:58:27 +02:00
|
|
|
}
|
|
|
|
|
2017-07-15 12:47:11 +02:00
|
|
|
export class ErrorDTO {
|
2017-07-09 14:23:50 +02:00
|
|
|
constructor(public code: ErrorCodes, public message?: string, public details?: any) {
|
2017-06-10 22:32:56 +02:00
|
|
|
}
|
|
|
|
}
|