Creating elegant custom exceptions is easy with ecmascript classes.
class properties in ES7 can be used to write elegant React components.
class properties