844b4904b4e908bf543fae0756c3743de38fc63a930045656cd20f737683f5dd74e1709e4ffcf229d87328535cca55af461137255dcc7ef79acfd463c4bcd0 742 B

1234567891011121314151617181920212223242526
  1. import { createErrorClass } from './createErrorClass';
  2. export interface SequenceError extends Error {}
  3. export interface SequenceErrorCtor {
  4. /**
  5. * @deprecated Internal implementation detail. Do not construct error instances.
  6. * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269
  7. */
  8. new (message: string): SequenceError;
  9. }
  10. /**
  11. * An error thrown when something is wrong with the sequence of
  12. * values arriving on the observable.
  13. *
  14. * @see {@link operators/single}
  15. */
  16. export const SequenceError: SequenceErrorCtor = createErrorClass(
  17. (_super) =>
  18. function SequenceErrorImpl(this: any, message: string) {
  19. _super(this);
  20. this.name = 'SequenceError';
  21. this.message = message;
  22. }
  23. );