import { AxiosError } from 'axios' ; import { ErrorLike } from './ResolverError' ; import { ResolverWarning } from './ResolverWarning' ; class extends ResolverWarning export class NotFoundError extends ResolverWarning { public name = 'NotFoundError' ; param { ( string | AxiosError | ErrorLike ) } messageOrError constructor ( messageOrError ) { super ( messageOrError , 404 , 'NOT_FOUND' ) ; if ( typeof messageOrError === 'string' || ! messageOrError . stack ) { Error . captureStackTrace ( this , NotFoundError ) ; } } }