@zimic/interceptor
Version:
Next-gen TypeScript-first HTTP intercepting and mocking
14 lines (12 loc) • 544 B
text/typescript
/**
* Error thrown when an interceptor token file is invalid.
*
* @see {@link https://zimic.dev/docs/interceptor/guides/http/remote-interceptors#interceptor-server-authentication Interceptor server authentication}
*/
class InvalidInterceptorTokenFileError extends Error {
constructor(tokenFilePath: string, validationErrorMessage: string) {
super(`Invalid interceptor token file ${tokenFilePath}: ${validationErrorMessage}`);
this.name = 'InvalidInterceptorTokenFileError';
}
}
export default InvalidInterceptorTokenFileError;