helpAnchor
TypeScriptgetHelpAnchor($self: MusicLibrary_Error): (string) | nullSwift declarationvar helpAnchor: String? { get }A localized message providing "help" text if the user requests help.
enum · iOS 16.1+ · SDK 27.1
enum ErrorAn error that the music library can throw upon accessing, manipulating, or requesting data from the user’s music library.
getHelpAnchor($self: MusicLibrary_Error): (string) | nullSwift declarationvar helpAnchor: String? { get }A localized message providing "help" text if the user requests help.
getDescription($self: MusicLibrary_Error): 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.
getFailureReason($self: MusicLibrary_Error): (string) | nullSwift declarationvar failureReason: String? { get }A localized message describing the reason for the failure.
getErrorDescription($self: MusicLibrary_Error): (string) | nullSwift declarationvar errorDescription: String? { get }A localized message describing what error occurred.
getRecoverySuggestion($self: MusicLibrary_Error): (string) | nullSwift declarationvar recoverySuggestion: String? { get }A localized message describing how one might recover from the failure.
init(rawValue: string): (MusicLibrary_Error) | nullSwift declarationinit?(rawValue: String)Creates a new instance with the specified raw value. If there is no value of the type that corresponds with the specified raw value, this initializer returns `nil`. For example: enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional(PaperSize.Legal)" print(PaperSize(rawValue: "Tabloid")) // Prints "nil" - Parameter rawValue: The raw value to use for the new instance.
getRawValue($self: MusicLibrary_Error): stringSwift declarationvar rawValue: String { get }The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"
No declarations were skipped in this snapshot.