---
title: "request(_:didFailWithError:)"
framework: soundanalysis
role: symbol
role_heading: Instance Method
path: "soundanalysis/snresultsobserving/request(_:didfailwitherror:)"
---

# request(_:didFailWithError:)

Provides any errors that occur during processing of the request.

## Declaration

```swift
optional func request(_ request: any SNRequest, didFailWithError error: any Error)
```

## Parameters

- `request`: The request that produces the error.
- `error`: The error that occurs during the request.

## Discussion

Discussion The analyzer stops processing a specific request when it encounters an error, and doesn’t call requestDidComplete(_:).

## See Also

### Handling Requests

- [request(_:didProduce:)](soundanalysis/snresultsobserving/request(_:didproduce:).md)
- [SNResult](soundanalysis/snresult.md)
- [requestDidComplete(_:)](soundanalysis/snresultsobserving/requestdidcomplete(_:).md)
