๐Ÿ“ฆ google / zx

๐Ÿ“„ error.d.ts ยท 13 lines
1
2
3
4
5
6
7
8
9
10
11
12
13export declare class Fail extends Error {
    static DOCS_URL: string;
    static EXIT_CODES: Record<number, string>;
    static ERRNO_CODES: Record<number, string>;
    static formatExitMessage(code: number | null, signal: NodeJS.Signals | null, stderr: string, from: string, details?: string): string;
    static formatErrorMessage(err: NodeJS.ErrnoException, from: string): string;
    static formatErrorDetails(lines?: string[], lim?: number): string;
    static getExitCodeInfo(exitCode: number | null): string | undefined;
    static getCallerLocationFromString(stackString?: string): string;
    static getCallerLocation(err?: Error): string;
    static getErrnoMessage(errno?: number): string;
}