summaryrefslogtreecommitdiff
path: root/JuickNext/Helpers/Errors.swift
blob: 5c47a70f8b2bd96d34d9f26dfca14d21db7c2795 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
//  Errors.swift
//  JuickNext
//
//  Created by Vitaly Takmazov on 10.12.2019.
//  Copyright © 2019 com.juick. All rights reserved.
//

import Foundation

enum FetchError: Error {
    case error(String)
    
    var localizedDescription: String {
        switch self {
        case .error(let message):
            return message
        }
    }
}