INNER CODE UNIT · TypeScript
InvalidKeyError
yume-chan/ya-webadb · libraries/adb-credential-nodejs/src/index.ts:47
class InvalidKeyError extends KeyError {
constructor(path: string, options?: ErrorOptions) {
super(`Can't read private key file at "${path}"`, path, options);
}
}
function wrapError(e: unknown, creator: (e: unknown) => KeyError) {
return e instanceof KeyError ? e : creator(e);
}
/**
* Can't read or parse a vendor key.
*
* Check `path` for file path, and `cause` for the error.
*/
class VendorKeyError extends KeyError {
constructor(path: string, options?: ErrorOptions) {
super(`Can't read vendor key file at "${path}"`, path, options);