HydrawiseCommandException.ts 422 B

12345678910111213141516171819
  1. /**
  2. * @author Martijn Dierckx
  3. */
  4. /** Class representing a specifc error triggered by the Hydrawise API binding */
  5. export class HydrawiseCommandException extends Error {
  6. public date: Date;
  7. constructor(message: string, ...params:any) {
  8. super(...params);
  9. Error.captureStackTrace(this, HydrawiseCommandException);
  10. this.name = 'HydrawiseCommandException';
  11. this.message = message;
  12. this.date = new Date();
  13. }
  14. }