pigallery2/common/entities/Error.ts

22 lines
346 B
TypeScript

export enum ErrorCodes{
NOT_AUTHENTICATED,
ALREADY_AUTHENTICATED,
NOT_AUTHORISED,
CREDENTIAL_NOT_FOUND,
USER_CREATION_ERROR,
GENERAL_ERROR,
THUMBNAIL_GENERATION_ERROR,
SERVER_ERROR,
USER_MANAGEMENT_DISABLED
}
export class Error {
constructor(public code:ErrorCodes, public message?:String) {
}
}