ApiClientError class

Former-commit-id: 68e4208dc1
restapi
Jens Pelzetter 2020-08-12 13:53:38 +02:00
parent 2f53cb4b67
commit 93cb4ba102
1 changed files with 11 additions and 0 deletions

View File

@ -176,3 +176,14 @@ export function buildIdentifierParam(identifier: string | number): string {
}
}
}
/**
* Error which should be thrown by clients for errors of the client side.
*/
export class ApiClientError extends Error {
constructor(message: string) {
super(message);
this.name = "ApiClientError";
}
}