bump-cli
Version:
The Bump CLI is used to interact with your API documentation hosted on Bump.sh by using the API of developers.bump.sh
14 lines (13 loc) • 648 B
TypeScript
import { CLIError } from '@oclif/core/errors';
import { AxiosError } from 'axios';
import { InvalidDefinitionError } from './models.js';
type MessagesAndExitCode = [string[], number];
export default class APIError extends CLIError {
constructor(httpError?: AxiosError | undefined, info?: string[], exit?: number);
static humanAttributeError(attribute: string, messages: unknown): string[];
static invalidDefinition(error: InvalidDefinitionError): MessagesAndExitCode;
static is(error: Error): error is APIError;
static notFound(error: Error): MessagesAndExitCode;
static unauthenticated(): MessagesAndExitCode;
}
export {};