Add files via upload

This commit is contained in:
Jungpyo Hong 2021-05-04 00:46:02 -05:00 committed by GitHub
parent a36666d5fd
commit 725a595431
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

37
Helper/AppError.swift Normal file
View File

@ -0,0 +1,37 @@
//
// AppError.swift
// OperationQueueDemo
//
// Created by JungpyoHong on 5/4/21.
//
import Foundation
enum AppError: Error {
case badUrl
case badResponse
case serverError
case noData
case parseError
case badRequest
case genericError(String)
var errorMessage: String {
switch self {
case .badUrl:
return ""
case .badResponse:
return ""
case .serverError:
return ""
case .noData:
return ""
case .badRequest:
return ""
case .parseError:
return ""
case .genericError(let message):
return message
}
}
}