/** * @file Exception handler for SDK API calls */ import { AxiosError, AxiosResponse } from 'axios'; interface SourceError extends AxiosError { response?: AxiosResponse; } interface AxiosSourceError extends SourceError { srcError?: SourceError; } /** * checkMandatoryParam checks if a given attr is empty and console logs the message given * * @export * @param attr [string] * @param message [string] */ export declare function checkMandatoryParam(attr: string, message: string): void; /** * sdkExceptionHandler is the handler when any http errors occur * * @param error AxiosError to be thrown */ export declare function httpExceptionHandler(error: AxiosSourceError): Error; /** * sdkExceptionHandler is the handler when any SDK errors occur * * @param errorName name of the error * @param message message to compare with the error list */ export declare function sdkExceptionHandler(errorName: string, message?: string, srcError?: Error): Error; export {};