fio-api-handler
Version:
Unofficial handler for Fio Bank API
16 lines (15 loc) • 512 B
TypeScript
import { ApiResponseType } from 'rest-api-handler';
export default class FioApiException extends Error {
/**
* Response from server that throwed an error.
*/
protected response: ApiResponseType<Record<string, any> | string>;
/**
* Constructor.
*
* @param response - Processed response from server.
*/
constructor(response: ApiResponseType<Record<string, any> | string>);
getResponse(): ApiResponseType<string | Record<string, any>>;
getRequest(): Request;
}