CommunicationError

public enum CommunicationError : Swift.Error, CaseIterable, CustomDebugStringConvertible

This enum is based on the Swift Error protocol. It provides errors specific to communication with the source server.

  • The server successfully completed, but there was a redirection (which we consider a failure).

    Declaration

    Swift

    case redirectionError(error: Swift.Error?)

    Parameters

    error

    The Swift error, sent back (if any).

  • There was a problem with what we sent to the server.

    Declaration

    Swift

    case clientError(error: Swift.Error?)

    Parameters

    error

    The Swift error, sent back (if any).

  • The server had a cow.

    Declaration

    Swift

    case serverError(error: Swift.Error?)

    Parameters

    error

    The Swift error, sent back (if any).

  • Thisis called in case no HTTP response came in. It will likely never happen.

    Declaration

    Swift

    case missingResponseError(error: Swift.Error?)

    Parameters

    error

    The Swift error, sent back (if any).

  • None of the above.

    Declaration

    Swift

    case generalError(error: Swift.Error?)

    Parameters

    error

    The Swift error, sent back (if any).

  • CaseIterable Conformance Returns empty variants of each case.

    Declaration

    Swift

    public static var allCases: [CommunicationError] { get }
  • CustomDebugStringConvertible Conformance Returns a detailed, hierarchical debug description string.

    Declaration

    Swift

    public var debugDescription: String { get }