Asserts that the value is a function that when executed will throw an error.
An AssertionFailure if the function does not throw an error.
An AssertionError if the error thrown does not match the expected error.
An AssertionError if the error message does not match the expected message.
Represents an interface for validating that the current (
actual) value is a function that when executed is expected to throw an assertion of the matching type.Template: R
The type of the result of the operation.