项目原始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.
 
 
 
 

19 lines
462 B

  1. /**
  2. * An error thrown when an Observable or a sequence was queried but has no
  3. * elements.
  4. *
  5. * @see {@link first}
  6. * @see {@link last}
  7. * @see {@link single}
  8. *
  9. * @class EmptyError
  10. */
  11. export class EmptyError extends Error {
  12. constructor() {
  13. const err = super('no elements in sequence');
  14. this.name = err.name = 'EmptyError';
  15. this.stack = err.stack;
  16. this.message = err.message;
  17. }
  18. }
  19. //# sourceMappingURL=EmptyError.js.map