ApiClientError class

Jens Pelzetter 2020-08-12 13:53:38 +02:00
parent 6dbc592026
commit 68e4208dc1
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";
}
}