Mercurial > public > simoleon
comparison Simoleon/ErrorHandling.swift @ 150:6eac99e99b96
Add error handling to read json function
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Thu, 19 Aug 2021 19:12:56 +0100 |
parents | |
children | 681f2cbe8c7f |
comparison
equal
deleted
inserted
replaced
149:07b5d7386e6e | 150:6eac99e99b96 |
---|---|
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 enum JsonErrors: Error { | |
11 case fileMissing | |
12 case loadFailed(cause: String) | |
13 case parseFailed(cause: String) | |
14 } |