summaryrefslogtreecommitdiff
path: root/JuickNext/Helpers/Errors.swift
diff options
context:
space:
mode:
Diffstat (limited to 'JuickNext/Helpers/Errors.swift')
-rw-r--r--JuickNext/Helpers/Errors.swift20
1 files changed, 20 insertions, 0 deletions
diff --git a/JuickNext/Helpers/Errors.swift b/JuickNext/Helpers/Errors.swift
new file mode 100644
index 0000000..5c47a70
--- /dev/null
+++ b/JuickNext/Helpers/Errors.swift
@@ -0,0 +1,20 @@
+//
+// Errors.swift
+// JuickNext
+//
+// Created by Vitaly Takmazov on 10.12.2019.
+// Copyright © 2019 com.juick. All rights reserved.
+//
+
+import Foundation
+
+enum FetchError: Error {
+ case error(String)
+
+ var localizedDescription: String {
+ switch self {
+ case .error(let message):
+ return message
+ }
+ }
+}