import { AxiosError } from 'axios' ; import { LogLevel } from '../service/logger' ; import { ErrorLike , ResolverError } from './ResolverError' ; class extends ResolverError export class ResolverWarning extends ResolverError { public name = 'ResolverWarning' ; public level = LogLevel . Warn ; param { ( string | AxiosError | ErrorLike ) } messageOrError constructor ( messageOrError , public status = 422 , public code = 'RESOLVER_WARNING' ) { super ( messageOrError , status , code ) ; if ( typeof messageOrError === 'string' || ! messageOrError . stack ) { Error . captureStackTrace ( this , ResolverWarning ) ; } } }