the caught throwable
AssertException otherwise
import std.exception : enforce; auto exception = expectThrows(enforce(false)); assertEquals("Enforcement failed", exception.msg);
auto exception = expectThrows!AssertException(expectThrows(42)); assertEquals("expected <Exception> was not thrown", exception.msg);
Asserts that the expression throws the specified throwable.