Class ApiException

    • Method Detail

      • fromResponseBody

        public static ApiException fromResponseBody​(String body,
                                                    int statusCode)
        Extracts an exception from the response body.
        Parameters:
        body - the body
        statusCode - the status code
        Returns:
        the api exception
      • getStatusCode

        public int getStatusCode()
        Gets status code.
        Returns:
        the status code
      • isClientError

        public boolean isClientError()
        Is client error boolean.
        Returns:
        the boolean
      • getType

        public String getType()
        Gets type.
        Returns:
        the type
      • getFields

        public Map<String,​Object> getFields()
        Gets fields.
        Returns:
        the fields