Package breakdown. Commit v1.0.0 of services-common stuff
This commit is contained in:
9
lib/domain/errors/ApiError.ts
Normal file
9
lib/domain/errors/ApiError.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Payload } from '../../types/Payload';
|
||||
import { ServiceError } from './ServiceError';
|
||||
|
||||
export class ApiError extends ServiceError {
|
||||
constructor(message: string, debug?: Payload) {
|
||||
super(message, debug);
|
||||
this.name = 'ApiError';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user