@cowwoc/requirements
Version:
A fluent API for enforcing design contracts with automatic message generation.
17 lines • 480 B
JavaScript
/**
* Thrown when assertion has failed or a condition thought to be impossible has occurred.
*/
class AssertionError extends Error {
/**
* Creates a new error.
*
* @param message - an explanation of what went wrong
* @param options - configuration options
*/
constructor(message, options) {
super(message, options);
this.name = this.constructor.name;
}
}
export { AssertionError };
//# sourceMappingURL=AssertionError.mjs.map