项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

16 line
378 B

  1. /**
  2. * An error thrown when duetime elapses.
  3. *
  4. * @see {@link timeout}
  5. *
  6. * @class TimeoutError
  7. */
  8. export class TimeoutError extends Error {
  9. constructor() {
  10. const err = super('Timeout has occurred');
  11. this.name = err.name = 'TimeoutError';
  12. this.stack = err.stack;
  13. this.message = err.message;
  14. }
  15. }
  16. //# sourceMappingURL=TimeoutError.js.map