diff options
Diffstat (limited to 'tools/node_modules/eslint/node_modules/rxjs/src/internal/util/EmptyError.ts')
-rw-r--r-- | tools/node_modules/eslint/node_modules/rxjs/src/internal/util/EmptyError.ts | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tools/node_modules/eslint/node_modules/rxjs/src/internal/util/EmptyError.ts b/tools/node_modules/eslint/node_modules/rxjs/src/internal/util/EmptyError.ts deleted file mode 100644 index 6dacfc6aa8..0000000000 --- a/tools/node_modules/eslint/node_modules/rxjs/src/internal/util/EmptyError.ts +++ /dev/null @@ -1,27 +0,0 @@ -export interface EmptyError extends Error { -} - -export interface EmptyErrorCtor { - new(): EmptyError; -} - -function EmptyErrorImpl(this: any) { - Error.call(this); - this.message = 'no elements in sequence'; - this.name = 'EmptyError'; - return this; -} - -EmptyErrorImpl.prototype = Object.create(Error.prototype); - -/** - * An error thrown when an Observable or a sequence was queried but has no - * elements. - * - * @see {@link first} - * @see {@link last} - * @see {@link single} - * - * @class EmptyError - */ -export const EmptyError: EmptyErrorCtor = EmptyErrorImpl as any;
\ No newline at end of file |