1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2026-03-27 22:40:08 +01:00
Files
app/phpmon/Common/Errors/Errors.swift
2026-02-17 14:19:39 +01:00

30 lines
680 B
Swift

//
// Errors.swift
// PHP Monitor
//
// Created by Nico Verbruggen on 08/02/2022.
// Copyright © 2025 Nico Verbruggen. All rights reserved.
//
import Foundation
// MARK: - Alertable Errors
// These errors must be resolved by the user.
struct AdminPrivilegeError: Error, AlertableError {
enum Kind: String {
case applescriptNilError = "homebrew_permissions.applescript_returned_nil"
}
let kind: Kind
func getErrorMessageKey() -> String {
return "alert.errors.\(self.kind.rawValue)"
}
}
// MARK: - Errors that do not have an associated alert message
// The errors must be resolved by the developer.
struct VersionParseError: Error {}