feat(MED-85): create logs of sending order to medipost success/error
This commit is contained in:
9
lib/services/medipost/MedipostValidationError.ts
Normal file
9
lib/services/medipost/MedipostValidationError.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export class MedipostValidationError extends Error {
|
||||
response: string;
|
||||
|
||||
constructor(response: string) {
|
||||
super('Invalid Medipost response');
|
||||
this.name = 'MedipostValidationError';
|
||||
this.response = response;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user