ErrorHandlingAdapter
Error Handling Adapter interface for HTTP clients.
interface ErrorHandlingAdapter<TClient, TConfig> {
createNormalizer: (config?: TConfig) => ErrorNormalizer;
withErrorNormalizer: (client: TClient, config?: TConfig) => TClient;
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
createNormalizer | Required | (config?: TConfig) => ErrorNormalizer | Creates a configured error normalizer function. |
withErrorNormalizer | Required | (client: TClient, config?: TConfig) => TClient | DX helper that attaches error normalization to HTTP client instance. |