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
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
Discussion
You can retry the match if the error indicates an issue in communicating with the catalog server, such as SHError.Code.matchAttemptFailed.