fix: handle make journal errors with contacts.

This commit is contained in:
Ahmed Bouhuolia
2020-11-30 17:56:13 +02:00
parent 5c5a9438ee
commit b5b9764676
4 changed files with 370 additions and 195 deletions

View File

@@ -3,9 +3,12 @@
export default class ServiceError {
errorType: string;
message: string;
payload: any;
constructor(errorType: string, message?: string) {
constructor(errorType: string, message?: string, payload?: any) {
this.errorType = errorType;
this.message = message || null;
this.payload = payload;
}
}