25 lines
521 B
Swift
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"
|
|
}
|
|
}
|
|
}
|