/
githubmirror
/
yarn
Обзор
Документация
Войти
/
githubmirror
/
yarn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.22.20
src/errors.js
44 строки
836 B
Maël Nison
Adds support for npm-notice during OTP requests
01 апр 2022, 00:14
01 апр 2022, 00:14
5b2ac04
Код
Авторство
О чём код?
/* @flow */ export class MessageError extends Error { constructor(msg: string, code?: string) { super(msg); this.code = code; } code: ?string; } export class ProcessSpawnError extends MessageError { constructor(msg: string, code?: string, process?: string) { super(msg, code); this.process = process; } process: ?string; } export class SecurityError extends MessageError {} export class ProcessTermError extends MessageError { EXIT_CODE: ?number; EXIT_SIGNAL: ?string; } export class ResponseError extends Error { constructor(msg: string, responseCode: number) { super(msg); this.responseCode = responseCode; } responseCode: number; } export class OneTimePasswordError extends Error { constructor(notice: string) { super(); this.notice = notice; } notice: string; }