garmin-api-handler
Version:
Unofficial handler for Garmin connect API
23 lines (17 loc) • 387 B
JavaScript
import GarminException from './GarminException.js';
class GarminApiException extends GarminException {
/**
* Constructor.
*/
constructor(response) {
super(JSON.stringify(response.data));
this.response = response;
}
getResponse() {
return this.response;
}
getRequest() {
return this.response.request;
}
}
export { GarminApiException as default };