ApiClientError class
parent
6dbc592026
commit
68e4208dc1
|
|
@ -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";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue