chargebee
Version:
A library for integrating with Chargebee.
18 lines (17 loc) • 558 B
JavaScript
import { ChargebeeError } from '../chargebeeError.js';
export class HttpClient {
async makeApiRequest(props, timeout) {
throw new Error('makeApiRequest is not implemented');
}
static timeOutError() {
const error = new ChargebeeError({
message: 'io_error',
type: 'timeout',
api_error_code: 'request aborted due to timeout.',
http_status_code: 504,
http_code: 504,
error_code: 'request aborted due to timeout.',
}, null);
return error;
}
}