<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ShazamKit",
  "identifier" : "/documentation/ShazamKit/SHSessionDelegate/session(_:didNotFindMatchFor:error:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ShazamKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SHSessionDelegate(im)session:didNotFindMatchForSignature:error:"
  },
  "title" : "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.

```
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.

## Discussion

You can retry the match if the error indicates an issue in communicating with the catalog server, such as [`SHError.Code.matchAttemptFailed`](/documentation/ShazamKit/SHError/Code/matchAttemptFailed).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)