mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
21 lines
314 B
TypeScript
21 lines
314 B
TypeScript
export enum ErrorCodes{
|
|
NOT_AUTHENTICATED,
|
|
ALREADY_AUTHENTICATED,
|
|
NOT_AUTHORISED,
|
|
CREDENTIAL_NOT_FOUND,
|
|
|
|
|
|
USER_CREATION_ERROR,
|
|
|
|
|
|
GENERAL_ERROR,
|
|
SERVER_ERROR,
|
|
|
|
USER_MANAGEMENT_DISABLED
|
|
|
|
}
|
|
|
|
export class Error {
|
|
constructor(public code:ErrorCodes, public message?:String) {
|
|
}
|
|
} |