diff --git a/Sources/AppFoundations/Extensions/Error/NSError+LocalizedDescription.swift b/Sources/AppFoundations/Extensions/Error/NSError+LocalizedDescription.swift new file mode 100644 index 0000000..793f008 --- /dev/null +++ b/Sources/AppFoundations/Extensions/Error/NSError+LocalizedDescription.swift @@ -0,0 +1,15 @@ +// +// NSError+LocalizedDescription.swift +// +// +// Created by Mark DiFranco on 2023-11-29. +// + +import Foundation + +public extension NSError { + + convenience init(domain: String = "AppFoundations", description: String) { + self.init(domain: domain, code: 0, userInfo: [NSLocalizedDescriptionKey : description]) + } +}