HydrawiseCommandException.js 608 B

1234567891011121314151617
  1. "use strict";
  2. /**
  3. * @author Martijn Dierckx
  4. */
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. /** Class representing a specifc error triggered by the Hydrawise API binding */
  7. class HydrawiseCommandException extends Error {
  8. constructor(message, ...params) {
  9. super(...params);
  10. Error.captureStackTrace(this, HydrawiseCommandException);
  11. this.name = 'HydrawiseCommandException';
  12. this.message = message;
  13. this.date = new Date();
  14. }
  15. }
  16. exports.HydrawiseCommandException = HydrawiseCommandException;
  17. //# sourceMappingURL=HydrawiseCommandException.js.map