frontend/.pnpm-store/v3/files/96/157c1c35710620452d0c61267745a21dc8c31c790d430ebbc2773c2b010e4113a12cb63288cd43525edf82048835d7c50fabe57dfc147c227cb001a8d183e5

30 lines
787 B
Plaintext

import { createErrorClass } from './createErrorClass';
export interface EmptyError extends Error {}
export interface EmptyErrorCtor {
/**
* @deprecated Internal implementation detail. Do not construct error instances.
* Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269
*/
new (): EmptyError;
}
/**
* An error thrown when an Observable or a sequence was queried but has no
* elements.
*
* @see {@link first}
* @see {@link last}
* @see {@link single}
* @see {@link firstValueFrom}
* @see {@link lastValueFrom}
*
* @class EmptyError
*/
export const EmptyError: EmptyErrorCtor = createErrorClass((_super) => function EmptyErrorImpl(this: any) {
_super(this);
this.name = 'EmptyError';
this.message = 'no elements in sequence';
});