system_assignation/node_modules/global-agent/dist/errors.js.flow

16 lines
299 B
Plaintext
Raw Normal View History

2022-03-24 09:22:39 -04: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;
}
}