INNER CODE UNIT · TypeScript

KeyError

yume-chan/ya-webadb · libraries/adb-credential-nodejs/src/index.ts:27

class KeyError extends Error {
    [KeyErrorBrand] = true;

    static override [Symbol.hasInstance](value: unknown) {
        return !!(value as KeyError | undefined)?.[KeyErrorBrand];
    }

    readonly path: string;

    constructor(message: string, path: string, options?: ErrorOptions) {
        super(message, options);
        this.path = path;
    }
}

/**
 * Can't read or parse a private key file.
 *

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…