export class RecordNotFoundError extends Error { public code : number ; constructor ( public message ) { super ( message ) ; this . code = 2 ; Object . setPrototypeOf ( this , new . target . prototype ) ; } }