1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2026-05-16 09:21:12 +02:00
Files
pigallery2/common/entities/Error.ts
T
2016-03-19 17:31:42 +01:00

18 lines
264 B
TypeScript

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