summaryrefslogtreecommitdiff
path: root/JuickNext/Helpers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-05-15 09:50:08 +0300
committerGravatar Vitaly Takmazov2024-05-15 09:50:08 +0300
commit891418e90fe29515364a236a2bb9c81e2a37ff65 (patch)
tree35422be50e4b38534ba5a0d442c90668d7d07500 /JuickNext/Helpers
parent517bc874906e5b81cade91f5c7903736779fbeb0 (diff)
Refactor & reorganize project
* LoadableState -> Result
Diffstat (limited to 'JuickNext/Helpers')
-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
+ }
+ }
+}