mirror of
https://github.com/jphong1111/awesome-ios-developer.git
synced 2024-12-22 21:55:37 +07:00
Delete AppError.swift
This commit is contained in:
parent
f9f3219f46
commit
8e09d60d9e
@ -1,37 +0,0 @@
|
||||
//
|
||||
// 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
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user