CityBEM-CityLayers-SaeedRay.../node_modules/global-agent/dist/errors.js.flow

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