Mercurial > public > simoleon
diff Simoleon/ErrorHandling.swift @ 155:681f2cbe8c7f
Refactor error handling class
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Wed, 25 Aug 2021 11:00:21 +0100 |
parents | 6eac99e99b96 |
children |
line wrap: on
line diff
--- a/Simoleon/ErrorHandling.swift Wed Aug 25 10:43:12 2021 +0100 +++ b/Simoleon/ErrorHandling.swift Wed Aug 25 11:00:21 2021 +0100 @@ -7,8 +7,10 @@ import Foundation -enum JsonErrors: Error { - case fileMissing - case loadFailed(cause: String) - case parseFailed(cause: String) +class ErrorHandling { + enum Json: Error { + case fileMissing + case loadFailed(cause: String) + case parseFailed(cause: String) + } }