UNPKG

garmin-api-handler

Version:
25 lines (18 loc) 400 B
'use strict'; 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;