UNPKG

@cowwoc/requirements

Version:

A fluent API for enforcing design contracts with automatic message generation.

16 lines 407 B
/** * Thrown when a method is invoked at an illegal or inappropriate time. */ class IllegalStateError extends Error { /** * Creates a new error. * * @param message - an explanation of what went wrong */ constructor(message) { super(message); this.name = this.constructor.name; } } export { IllegalStateError }; //# sourceMappingURL=IllegalStateError.mjs.map