d9494a5
1
2
3
4
5
6
7
8
9
10
// This class is used to group different error messages under the same code for sentry. export class CustomError extends Error { public code?: string; constructor(message: string, code?: string) { super(message); this.code = code; } }