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 message for more information

    Declaration

    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 info for more information

    Declaration

    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 error property

    Declaration

    Swift

    case unknown(error: Error)
  • All data is present but some property didn’t pass a validation. Please check message property that is returned. ex: startDate must be at least today

    Declaration

    Swift

    case invalidInput(message: String)
  • A more descriptive reason for the error.

    Declaration

    Swift

    public var errorDescription: String? { get }