StandardAPIError

public enum StandardAPIError : APIError

Standard API error returned in APIResult when no custom error was parsed in the APIAdapter first and the response from server was invalid.

  • Error raised by NSURLSession corresponding to NSURLErrorCancelled at domain NSURLErrorDomain.

    Declaration

    Swift

    case cancelled
  • Connection error when no response and data was received.

    Declaration

    Swift

    case connection(Error)
  • Status code error when the response status code is larger or equal to 500 and less than 600.

    Declaration

    Swift

    case server(Int, Data?)
  • Status code error when the response status code is larger or equal to 400 and less than 500.

    Declaration

    Swift

    case client(Int, Data?)
  • Multipart body part error, when the stream for the part or the temporary request body stream cannot be opened.

    Declaration

    Swift

    case multipartStreamCannotBeOpened
  • Undocumented

    Declaration

    Swift

    public init?(data: Data?, response: URLResponse?, error: Error?, decoder: JSONDecoder)