UNPKG

@vtex/api

Version:
19 lines (18 loc) 730 B
import { AxiosError } from 'axios'; import { ErrorLike } from './ResolverError'; import { ResolverWarning } from './ResolverWarning'; /** * Indicates user did not provide valid credentials for authenticating this request. * ResolverWarnings are logged with level "warning" denoting they were handled by user code. * * @class AuthenticationError * @extends {ResolverWarning} */ export declare class AuthenticationError extends ResolverWarning { name: string; /** * Creates an instance of AuthenticationError * @param {(string | AxiosError | ErrorLike)} messageOrError Either a message string or the complete original error object. */ constructor(messageOrError: string | AxiosError | ErrorLike); }