HydrawiseCommandException.js 652 B

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