1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/common/entities/Error.ts

22 lines
384 B
TypeScript
Raw Normal View History

export enum ErrorCodes{
NOT_AUTHENTICATED = 0,
ALREADY_AUTHENTICATED = 1,
NOT_AUTHORISED = 2,
CREDENTIAL_NOT_FOUND = 3,
USER_CREATION_ERROR = 4,
GENERAL_ERROR = 5,
THUMBNAIL_GENERATION_ERROR = 6,
SERVER_ERROR = 7,
2016-07-07 18:26:36 +08:00
USER_MANAGEMENT_DISABLED = 8
2016-05-09 23:04:56 +08:00
}
2016-05-09 23:04:56 +08:00
export class Error {
constructor(public code: ErrorCodes, public message?: string) {
2016-05-09 23:04:56 +08:00
}
2016-03-13 05:19:24 +08:00
}