From a42ece16fa551faedded9781968ca75d7557b3ae Mon Sep 17 00:00:00 2001 From: Michael Scoff Date: Thu, 16 Nov 2017 20:51:44 -0800 Subject: [PATCH] Add SendInputErrors --- Trust/Settings/Types/SendInputErrors.swift | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Trust/Settings/Types/SendInputErrors.swift diff --git a/Trust/Settings/Types/SendInputErrors.swift b/Trust/Settings/Types/SendInputErrors.swift new file mode 100644 index 000000000..e3dc945d9 --- /dev/null +++ b/Trust/Settings/Types/SendInputErrors.swift @@ -0,0 +1,17 @@ +// Copyright SIX DAY LLC. All rights reserved. + +import Foundation + +enum SendInputErrors: LocalizedError { + case emptyClipBoard + case invalidAddress + + var errorDescription: String? { + switch self { + case .emptyClipBoard: + return NSLocalizedString("send.emptyClipBoard", value: "Empty ClipBoard", comment: "") + case .invalidAddress: + return NSLocalizedString("send.invalidAddress", value: "Invalid Address", comment: "") + } + } +}