garmin-api-handler
Version:
Unofficial handler for Garmin connect API
25 lines (18 loc) • 400 B
JavaScript
;
var GarminException = require('./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;
}
}
module.exports = GarminApiException;