<!--
{
  "documentType" : "article",
  "framework" : "ShazamKit",
  "identifier" : "/documentation/ShazamKit/error-constants",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Error Constants"
}
-->

# Error Constants

Error code constants for framework operations.

## Topics

### Constants

[`matchAttemptFailed`](/documentation/ShazamKit/SHError/matchAttemptFailed)

The error code to indicate when a Shazam Music catalog server issue prevents finding a match.

[`signatureInvalid`](/documentation/ShazamKit/SHError/signatureInvalid)

The error code to indicate that the system is unable to generate a signature from the audio.

[`signatureDurationInvalid`](/documentation/ShazamKit/SHError/signatureDurationInvalid)

The error code to indicate that the length of the generated signature is too long or too short to make a match in the catalog.

[`invalidAudioFormat`](/documentation/ShazamKit/SHError/invalidAudioFormat)

The error code to indicate an unsupported audio format.

[`internalError`](/documentation/ShazamKit/SHError/internalError)

The error code to indicate a generic framework error.

[`audioDiscontinuity`](/documentation/ShazamKit/SHError/audioDiscontinuity)

The error code to indicate the use of noncontiguous audio to request a match.

[`customCatalogInvalidURL`](/documentation/ShazamKit/SHError/customCatalogInvalidURL)

The error code to indicate that the format for the custom catalog URL is invalid.

[`customCatalogInvalid`](/documentation/ShazamKit/SHError/customCatalogInvalid)

The error code to indicate when the custom catalog fails to load due to an invalid format.

[`mediaItemFetchFailed`](/documentation/ShazamKit/SHError/mediaItemFetchFailed)

The error code to indicate when the system fails to fetch one or more media items.

[`mediaLibrarySyncFailed`](/documentation/ShazamKit/SHError/mediaLibrarySyncFailed)

The error code that indicates when the system fails to add media items to or remove items from the user’s Shazam library.



---

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)