1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2026-05-16 09:21:12 +02:00

improving logging and fixing file reader error handling bug

This commit is contained in:
Braun Patrik
2017-06-03 22:35:47 +02:00
parent e430f0bdf6
commit 4333e41155
8 changed files with 132 additions and 72 deletions
+10 -10
View File
@@ -1,22 +1,22 @@
export enum ErrorCodes{
NOT_AUTHENTICATED,
ALREADY_AUTHENTICATED,
NOT_AUTHORISED,
CREDENTIAL_NOT_FOUND,
NOT_AUTHENTICATED = 0,
ALREADY_AUTHENTICATED = 1,
NOT_AUTHORISED = 2,
CREDENTIAL_NOT_FOUND = 3,
USER_CREATION_ERROR,
USER_CREATION_ERROR = 4,
GENERAL_ERROR,
THUMBNAIL_GENERATION_ERROR,
SERVER_ERROR,
GENERAL_ERROR = 5,
THUMBNAIL_GENERATION_ERROR = 6,
SERVER_ERROR = 7,
USER_MANAGEMENT_DISABLED
USER_MANAGEMENT_DISABLED = 8
}
export class Error {
constructor(public code:ErrorCodes, public message?:String) {
constructor(public code: ErrorCodes, public message?: string) {
}
}