frontend/.pnpm-store/v3/files/23/8aa473a40bcde10f0263b8e397a8fc552f3c67411f9f58301ea7b0e24d0f8bb634f133a95526aac059e23bac43a361bc5a5f10d2d416cb87187e4c24ed0689

29 lines
753 B
Plaintext

import { createErrorClass } from './createErrorClass';
export interface NotFoundError extends Error {}
export interface NotFoundErrorCtor {
/**
* @deprecated Internal implementation detail. Do not construct error instances.
* Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269
*/
new (message: string): NotFoundError;
}
/**
* An error thrown when a value or values are missing from an
* observable sequence.
*
* @see {@link operators/single}
*
* @class NotFoundError
*/
export const NotFoundError: NotFoundErrorCtor = createErrorClass(
(_super) =>
function NotFoundErrorImpl(this: any, message: string) {
_super(this);
this.name = 'NotFoundError';
this.message = message;
}
);