ekyc

Electronic KYC process with uploading ID document using OAuth 2.1 (experimental)
Log | Files | Refs | README | LICENSE

repository_error.ts (467B)


      1 export class RepositoryError extends Error {
      2   constructor(message: string = "Repository error", options?: ErrorOptions) {
      3     super(message, options);
      4   }
      5 }
      6 
      7 export class EntityNotFound extends RepositoryError {
      8   constructor(readonly id: string, options?: ErrorOptions) {
      9     super("Entity not found", options);
     10   }
     11 }
     12 
     13 export class EntityLocked extends RepositoryError {
     14   constructor(options?: ErrorOptions) {
     15     super("Entity optimistic locked", options);
     16   }
     17 }