<!--
{
  "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/SHError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "ShazamKit"
    ],
    "preciseIdentifier" : "s:SC11SHErrorCodeLeV"
  },
  "title" : "SHError"
}
-->

# SHError

An error type that you create, or the system creates, to indicate problems with a catalog, match attempt, or signature, or when saving to a user’s Shazam library.

```
struct SHError
```

## Topics

### Inspecting an error

[`enum Code`](/documentation/ShazamKit/SHError/Code)

Codes for the errors that Shazam produces.

[Error Constants](/documentation/ShazamKit/error-constants)

Error code constants for framework operations.

### Comparing errors

### Type Properties

[`static var errorDomain: String`](/documentation/ShazamKit/SHError/errorDomain)

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Error`](/documentation/Swift/Error)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomNSError`](/documentation/Foundation/CustomNSError)

[`Equatable`](/documentation/Swift/Equatable)

---

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)