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