NetworkError
public enum NetworkError : FRError
extension NetworkError: CustomNSError
NetworkError represents an error captured by FRCore SDK during REST API
- apiFailedWithError: Generic API request failure with error details from server side
- authenticationTimeout: Authentication session is timed out
- invalidCredentials: Authentication failed with invalid user credentials
- invalidResponseDataType: Invalid response data was received and the response data could not be serialized
- requestFailWithError: API request failed with unknown server side error
- invalidRequest: Invalid request is provided to the client, and failed to generate URLRequest object
-
Declaration
Swift
case invalidResponseDataType
-
Declaration
Swift
case invalidRequest(String)
-
Declaration
Swift
case apiRequestFailure(Data?, URLResponse?, Error?)
-
An error domain for AuthError
Declaration
Swift
public static var errorDomain: String { get }
-
Error codes for each error enum
Declaration
Swift
public var errorCode: Int { get }
-
Error UserInfo
Declaration
Swift
public var errorUserInfo: [String : Any] { get }