package.dist.src.errors.cache-service-error-mapper.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Client SDK for Momento services
The newest version!
import { ServiceError } from '@grpc/grpc-js';
import { SdkError } from '../../src';
import { ICacheServiceErrorMapper, ResolveOrRejectErrorOptions } from '@gomomento/sdk-core/dist/src/errors/ICacheServiceErrorMapper';
export declare class CacheServiceErrorMapper implements ICacheServiceErrorMapper {
private readonly throwOnErrors;
constructor(throwOnError: boolean);
returnOrThrowError(err: Error, errorResponseFactoryFn: (err: SdkError) => TErrorResponse): TErrorResponse;
resolveOrRejectError(opts: ResolveOrRejectErrorOptions): void;
convertError(err: ServiceError | null): SdkError;
}