ExternalError

public struct ExternalError : Equatable

Description of a server-delivered error

  • The code provided with the error

    Declaration

    Swift

    public var code: String
  • The message provided with the error

    Declaration

    Swift

    public var message: String
  • Error produced via a malformed response; rare.

    Declaration

    Swift

    public static var invalid: ExternalError { get }
  • Construct an external error

    Likely just useful for writing unit tests or other constructed situations.

    Declaration

    Swift

    public init(code: String, message: String)

    Parameters

    code

    The error code

    message

    The message