atcheck/lsscanner/new_ubuntu/node_modules/global-agent/dist/errors.js.flow

16 lines
299 B
Plaintext
Raw Normal View History

2019-12-16 18:42:21 +01:00
// @flow
/* eslint-disable fp/no-class, fp/no-this */
import ExtendableError from 'es6-error';
export class UnexpectedStateError extends ExtendableError {
code: string;
constructor (message: string, code: string = 'UNEXPECTED_STATE_ERROR') {
super(message);
this.code = code;
}
}