---
title: "session(_:didNotFindMatchFor:error:)"
framework: shazamkit
role: symbol
role_heading: Instance Method
path: "shazamkit/shsessiondelegate/session(_:didnotfindmatchfor:error:)"
---

# session(_:didNotFindMatchFor:error:)

Tells the delegate that the query signature doesn’t match an item in the catalog, or that there’s an error.

## Declaration

```swift
optional func session(_ session: SHSession, didNotFindMatchFor signature: SHSignature, error: (any Error)?)
```

## Parameters

- `session`: The session object that performs the match.
- `signature`: The query signature to use for the match.
- `error`: The error that occurs; otherwise, nil, which indicates that there’s no match.

## Mentioned in

Matching audio using the built-in microphone

## Discussion

Discussion You can retry the match if the error indicates an issue in communicating with the catalog server, such as SHError.Code.matchAttemptFailed.

## See Also

### Handling matches

- [session(_:didFind:)](shazamkit/shsessiondelegate/session(_:didfind:).md)
