AutoCat/AutoCatCore/Services/LocationService/LocationError.swift
2025-04-06 16:18:28 +03:00

25 lines
521 B
Swift

//
// LocationError.swift
// AutoCatCore
//
// Created by Selim Mustafaev on 06.04.2025.
// Copyright © 2025 Selim Mustafaev. All rights reserved.
//
import Foundation
public enum LocationError: LocalizedError {
case generic
case permission
case reverseGeocode
public var errorDescription: String? {
switch self {
case .generic: "Location error"
case .permission: "Location permission error"
case .reverseGeocode: "Reverse geocode error"
}
}
}