Asserts that an expression throws an error.
- Xcode 8.0+
An expression that can throw an error.
An optional description of the failure.
The file in which failure occurred. Defaults to the file name of the test case in which this function was called.
The line number on which failure occurred. Defaults to the line number on which this function was called.
An optional handler for errors that are thrown by