InventoryTrack/node_modules/global-agent/dist/errors.js.flow
2022-11-02 22:16:03 -04:00

16 lines
299 B
Plaintext

// @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;
}
}