---
title: XCTIssueReference.IssueType.thrownError
framework: xctest
role: symbol
role_heading: Case
path: xctest/xctissuereference/issuetype/thrownerror
---

# XCTIssueReference.IssueType.thrownError

A test failure when the test throws an error in Swift.

## Declaration

```swift
case thrownError
```

## Discussion

Discussion This could also occur if an Objective-C test uses the form -(BOOL)testExample:(NSError **)outError and returns NO with a non-nil out error.

## See Also

### Issue Types

- [XCTIssueReference.IssueType.assertionFailure](xctest/xctissuereference/issuetype/assertionfailure.md)
- [XCTIssueReference.IssueType.performanceRegression](xctest/xctissuereference/issuetype/performanceregression.md)
- [XCTIssueReference.IssueType.system](xctest/xctissuereference/issuetype/system.md)
- [XCTIssueReference.IssueType.uncaughtException](xctest/xctissuereference/issuetype/uncaughtexception.md)
- [XCTIssueReference.IssueType.unmatchedExpectedFailure](xctest/xctissuereference/issuetype/unmatchedexpectedfailure.md)
