TNError
public enum TNError : Errorextension TNError: LocalizedErrorCustom error definition.
- 
                  
                  Thrown when the url is not valid. DeclarationSwift case invalidURL
- 
                  
                  Thrown when the environment is not set. DeclarationSwift case environmentNotSet
- 
                  
                  Thrown when the params contain invalid characters. DeclarationSwift case invalidParams
- 
                  
                  Thrown when the response object is expected to be a UIImage but it’s not. DeclarationSwift case responseInvalidImageData
- 
                  
                  Thrown when the given Codable type cannot be deserialized. It contains the className and the error about deserilization. was went wrong in parsing. DeclarationSwift case cannotDeserialize(String, Error)
- 
                  
                  Thrown when the response object is expected to be a String but it’s not. DeclarationSwift case cannotConvertToString
- 
                  
                  Thrown when a network error occured. It contains the NSURLError. DeclarationSwift case networkError(Error)
- 
                  
                  Thrown when a request is not succeeded (it’s not 2xx). It contains the HTTP Status Code and the response Data. DeclarationSwift case notSuccess(Int, Data)
- 
                  
                  Thrown when a request is cancelled. DeclarationSwift case cancelled(Error?)
- 
                  
                  Thorwn when certificate pinning validation fails. DeclarationSwift case pinningError
- 
                  
                  Thrown when a request is mocked but the data is invalid (e.g. cannot parse JSON). DeclarationSwift case invalidMockData(String)
- 
                  
                  Thrown when a middleware reports an error. Throw this error in your custom middleware implementations if needed. It contains a custom type. DeclarationSwift case middlewareError(Any)
- 
                  
                  Thrown when MultipartFormDataPartType param is expected but passed something else. DeclarationSwift case invalidMultipartParams
- 
                  
                  Thrown when an invalid file path URL is passed on upload/download operations. DeclarationSwift case invalidFileURL(String)
- 
                  
                  Thrown when the file cannot be saved to destination for some reason. It contains the Error with additional information. DeclarationSwift case downloadedFileCannotBeSaved(Error)
- 
                  
                  Thrown when the transform method is not implemented (overriden in subclass). DeclarationSwift case transformerNotImplemented
- 
                  
                  Thrown when the transformation failed for some reason, e.g. Incompatible Types DeclarationSwift case transformationFailed
- 
                  
                  Thrown when a certificate path is invalid. DeclarationSwift case invalidCertificatePath(String)
- 
                  
                  Thrown when the response headers cannot be retrieved. Typicaly when you forget to call the start() method. DeclarationSwift case cannotReadResponseHeaders
- 
                  
                  Thrown when the response is empty. DeclarationSwift case emptyResponse
- 
                  
                  Thrown the reachability core function call cannot be itialized. DeclarationSwift case reachabilityError
- 
                  
                  A localized description for TNError. DeclarationSwift public var localizedDescription: String? { get }
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           TNError Enumeration Reference
      TNError Enumeration Reference