You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

errors.js.flow 299B

123456789101112131415
  1. // @flow
  2. /* eslint-disable fp/no-class, fp/no-this */
  3. import ExtendableError from 'es6-error';
  4. export class UnexpectedStateError extends ExtendableError {
  5. code: string;
  6. constructor (message: string, code: string = 'UNEXPECTED_STATE_ERROR') {
  7. super(message);
  8. this.code = code;
  9. }
  10. }