Error

public enum Error : LocalizedError

All errors Client can throw.

  • Unable to send request or invalid response from server.

    Declaration

    Swift

    case networkError(message: String, error: Swift.Error?)
  • Server responded with a JSON-RPC 2.0 error.

    Declaration

    Swift

    case responseError(code: Int, message: String, data: [String : Any]?)
  • Unable to decode the result or encode the request params.

    Declaration

    Swift

    case codingError(message: String, error: Swift.Error)
  • Declaration

    Swift

    public var errorDescription: String? { get }