FailedReason
public enum FailedReason : Error
extension FailedReason: LocalizedError
A enum of possible errors that may come from the SDK
More specific errors may be returned in VirtualVisitFailedReason,
-
Returned when a piece of information is missing. See the
messagefor more informationDeclaration
Swift
case missingInformation(message: String) -
SDK has called the server, but something is still missing.
Declaration
Swift
case badRequest -
SDK has called the server, but something is still missing. See
infofor more informationDeclaration
Swift
case badDexcareRequest(info: DexcareAPIError) -
The token that the SDK has is invalid. A new token is needed.
Declaration
Swift
case unauthorized -
The item doesn’t seem to exist in our system
Declaration
Swift
case notFound -
If we don’t know what the error was, it will pass through here. Check the
errorpropertyDeclaration
Swift
case unknown(error: Error) -
All data is present but some property didn’t pass a validation. Please check
messageproperty that is returned. ex: startDate must be at least todayDeclaration
Swift
case invalidInput(message: String) -
A more descriptive reason for the error.
Declaration
Swift
public var errorDescription: String? { get }
View on GitHub
Install in Dash