#[repr(transparent)]pub struct SHErrorCode(pub NSInteger);SHError only.Expand description
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.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl SHErrorCode
impl SHErrorCode
Sourcepub const InvalidAudioFormat: Self
pub const InvalidAudioFormat: Self
The error code to indicate an unsupported audio format.
For the list of the supported audio formats, see SHSignatureGenerator/append(_:at:).
Sourcepub const AudioDiscontinuity: Self
pub const AudioDiscontinuity: Self
The error code to indicate the use of noncontiguous audio to request a match.
Sourcepub const SignatureInvalid: Self
pub const SignatureInvalid: Self
The error code to indicate that the system is unable to generate a signature from the audio.
The most common cause of this error is silent audio input.
Sourcepub const SignatureDurationInvalid: Self
pub const SignatureDurationInvalid: Self
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.
This error occurs when the length of the generated signature is less than SHCatalog/minimumQuerySignatureDuration or greater than SHCatalog/maximumQuerySignatureDuration for the session SHSession/catalog.
Sourcepub const MatchAttemptFailed: Self
pub const MatchAttemptFailed: Self
The error code to indicate when a Shazam Music catalog server issue prevents finding a match.
Sourcepub const CustomCatalogInvalid: Self
pub const CustomCatalogInvalid: Self
The error code to indicate when the custom catalog fails to load due to an invalid format.
Sourcepub const CustomCatalogInvalidURL: Self
pub const CustomCatalogInvalidURL: Self
The error code to indicate that the format for the custom catalog URL is invalid.
Sourcepub const MediaLibrarySyncFailed: Self
pub const MediaLibrarySyncFailed: Self
The error code that indicates when the system fails to add media items to or remove items from the user’s Shazam library.
Sourcepub const InternalError: Self
pub const InternalError: Self
The error code to indicate a generic framework error.
Sourcepub const MediaItemFetchFailed: Self
pub const MediaItemFetchFailed: Self
The error code to indicate when the system fails to fetch one or more media items.
Trait Implementations§
Source§impl Clone for SHErrorCode
impl Clone for SHErrorCode
Source§fn clone(&self) -> SHErrorCode
fn clone(&self) -> SHErrorCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more