Members
buildsErrors
#
| source:
util/Exception.js, line 31
When enabled the convenience static functions of this class will
build Error
objects, instead of Exception
objects.
Used for tests runs in Jest, since throwing a custom object like
Exception
within a matcher results in the expectation hanging
indefinitely.
On the other hand, throwing an Error
object in chrome causes the
displayed stack to be relative to the bundled file, instead of the
source map.
Methods
(static) named()
#
| source:
util/Exception.js, line 42
Returns an convenience function for building throwable objects.
The function can can be used as following:
func(message) // returns an `Exception`` object with `name` and `message`
func.exceptionName // returns the `name` of the built throwable objects