MoyaError

public enum MoyaError : Swift.Error

A type representing possible errors Moya can throw.

  • Indicates a response failed to map to an image.

    Declaration

    Swift

    case imageMapping(Response)
  • Indicates a response failed to map to a JSON structure.

    Declaration

    Swift

    case jsonMapping(Response)
  • Indicates a response failed to map to a String.

    Declaration

    Swift

    case stringMapping(Response)
  • Indicates a response failed to map to a Decodable object.

    Declaration

    Swift

    case objectMapping(Swift.Error, Response)
  • Indicates that Encodable couldn’t be encoded into Data

    Declaration

    Swift

    case encodableMapping(Swift.Error)
  • Indicates a response failed with an invalid HTTP status code.

    Declaration

    Swift

    case statusCode(Response)
  • Indicates a response failed due to an underlying Error.

    Declaration

    Swift

    case underlying(Swift.Error, Response?)
  • Indicates that an Endpoint failed to map to a URLRequest.

    Declaration

    Swift

    case requestMapping(String)
  • Indicates that an Endpoint failed to encode the parameters for the URLRequest.

    Declaration

    Swift

    case parameterEncoding(Swift.Error)
  • Declaration

    Swift

    public var errorDescription: String? { get }
  • Declaration

    Swift

    public var errorUserInfo: [String : Any] { get }