diff --git a/PlantUML/Errors.swift b/PlantUML/Errors.swift new file mode 100644 index 0000000..6ce8701 --- /dev/null +++ b/PlantUML/Errors.swift @@ -0,0 +1,19 @@ +// +// File.swift +// PlantUMLApp +// +// Created by bsorrentino on 21/01/24. +// + +import Foundation + +enum Errors: Error { + case readingPromptError(String) + + public var localizedDescription: String { + if case .readingPromptError(let message) = self { + return message + } + return "generic error" + } +}