mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2025-12-25 12:14:17 +01:00
24 lines
504 B
Swift
24 lines
504 B
Swift
//
|
|
// FileError.swift
|
|
// Xcodes
|
|
//
|
|
// Created by Leon Wolf on 06.10.22.
|
|
// Copyright © 2022 Robots and Pencils. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import LegibleError
|
|
|
|
enum FileError: LocalizedError{
|
|
case fileNotFound(_ fileName: String)
|
|
}
|
|
|
|
extension FileError {
|
|
var errorDescription: String? {
|
|
switch self {
|
|
case .fileNotFound(let fileName):
|
|
return String(format: localizeString("Alert.Uninstall.Error.Message.FileNotFound"), fileName)
|
|
}
|
|
}
|
|
}
|