AppError
enum AppError: String, LocalizedError
All errors that can happen in the application
-
An error when creating a PDF
Declaration
Swift
case createPdfError
-
An error when the is no access to the song folder
Declaration
Swift
case noAccessToSongError
-
An error when saving the application settings
Declaration
Swift
case saveSettingsError
-
An error when writing the document
Declaration
Swift
case writeDocumentError
-
An error when a custom file is not found
Declaration
Swift
case customFileNotFound
-
There is no folder with songs selected
Declaration
Swift
case noSongsFolderSelectedError
-
There is a songs folder selected
Declaration
Swift
case songsFolderIsSelected
-
The audio file was not found
Declaration
Swift
case audioFileNotFoundError
-
The audio file is not yet downloaded
Declaration
Swift
case audioFileNotDownloadedError
-
The audio file is ready to play
Declaration
Swift
case readyToPlay
-
An unknown status
Declaration
Swift
case unknownStatus
-
The description of the status
Declaration
Swift
public var description: String
-
The error description of the status
Declaration
Swift
public var errorDescription: String?
-
The recovery suggestion of the status
Declaration
Swift
var recoverySuggestion: String?
-
The help anchor of the status
Note
Used as the label button for an alert or confirmation dialogDeclaration
Swift
var helpAnchor: String?
-
The icon of the status
Declaration
Swift
var icon: Image