You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
630 B
28 lines
630 B
//
|
|
// NetworkManagerError.swift
|
|
// PadelClub
|
|
//
|
|
// Created by Razmig Sarkissian on 03/03/2024.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum NetworkManagerError: LocalizedError {
|
|
case maintenance
|
|
case fileNotYetAvailable
|
|
case mailFailed
|
|
case mailNotSent //no network no error
|
|
case messageFailed
|
|
case messageNotSent //no network no error
|
|
case fileNotModified
|
|
case fileNotDownloaded(Int)
|
|
|
|
var errorDescription: String? {
|
|
switch self {
|
|
case .maintenance:
|
|
return "Le site de la FFT est en maintenance"
|
|
default:
|
|
return String(describing: self)
|
|
}
|
|
}
|
|
}
|
|
|