xcoobee-sdk
Version:
The XcooBee SDK is a facility to abstract lower level calls and implement standard behaviors. The XcooBee team is providing this to improve the speed of implementation and show the best practices while interacting with XcooBee.
24 lines (19 loc) • 444 B
JavaScript
const Response = require('./Response');
/**
* A response representing an error response, meaning the requested operation
* did not fully complete successfully.
*/
class ErrorResponse extends Response {
/**
* @param {number} code
* @param {Object} error
* @param {string} error.message
*/
constructor(code, error) {
super({
code,
error,
});
}
}
module.exports = ErrorResponse;