detailText
TypeScriptget detailText(): stringSwift declarationlet detailText: StringAdditional detailed information about the cause of the error. This is to help identify possible resolutions.
struct · iOS 15.0+ · SDK 27.1
struct ErrorAn error that the Apple Music API returns.
get detailText(): stringSwift declarationlet detailText: StringAdditional detailed information about the cause of the error. This is to help identify possible resolutions.
get description(): stringSwift declarationvar description: String { get }A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.
get originalResponse(): MusicDataResponseSwift declarationlet originalResponse: MusicDataResponseThe original response that contains the error.
get id(): stringSwift declarationlet id: StringThe identifier for the error.
get code(): numberSwift declarationlet code: IntThe specific code for the underlying cause of the error.
get title(): stringSwift declarationlet title: StringA developer-friendly title for the error.
get source(): (MusicDataRequest_Error_Source) | nullSwift declarationlet source: MusicDataRequest.Error.Source?The source of the error.
get status(): numberSwift declarationlet status: IntThe HTTP status code for the error.
No declarations were skipped in this snapshot.