All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.src.errors.cache-service-error-mapper.d.ts Maven / Gradle / Ivy

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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy