Files
EeveeSpotifyReborn/Sources/EeveeSpotify/Lyrics/Models/LyricsError.swift
T
2024-06-22 00:36:51 +03:00

20 lines
514 B
Swift

import Foundation
enum LyricsError: Error, CustomStringConvertible {
case NoCurrentTrack
case MusixmatchRestricted
case InvalidMusixmatchToken
case DecodingError
case NoSuchSong
var description: String {
switch self {
case .NoSuchSong: "No Song Found"
case .MusixmatchRestricted: "Restricted"
case .InvalidMusixmatchToken: "Unauthorized"
case .DecodingError: "Decoding Error"
case .NoCurrentTrack: "No Track Instance"
}
}
}