// @flow
import Error from 'es6-error';

new Error();
new Error('Ooups!');

class CustomError extends Error {
  customProperty: string = '';
}

const e = new CustomError();

e.name;
e.message;
e.stack;

e.customProperty;

// $FlowExpectedError
e.wut;
