/
githubmirror
/
yarn
Обзор
Документация
Войти
/
githubmirror
/
yarn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/errors.js
37 строк
741 B
Krzysztof Zbudniewek
feat(auth): Support two factor authentication for NPM accounts (#6555)
22 окт 2018, 17:03
22 окт 2018, 17:03
b8a565e
Код
Авторство
О чём код?
/* @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 {}