Mercurial > public > simoleon
comparison Simoleon/Helpers/ErrorHandling.swift @ 156:84137052813d
Refactor code
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sat, 28 Aug 2021 11:15:25 +0100 |
parents | Simoleon/ErrorHandling.swift@681f2cbe8c7f |
children | 0c589138a6f3 |
comparison
equal
deleted
inserted
replaced
155:681f2cbe8c7f | 156:84137052813d |
---|---|
1 // | |
2 // ErrorHandling.swift | |
3 // Simoleon | |
4 // | |
5 // Created by Dennis Concepción Martín on 19/8/21. | |
6 // | |
7 | |
8 import Foundation | |
9 | |
10 class ErrorHandling { | |
11 enum Json: Error { | |
12 case fileMissing | |
13 case loadFailed(cause: String) | |
14 case parseFailed(cause: String) | |
15 } | |
16 } |