Class RestException

    • Constructor Detail

      • RestException

        public RestException​(String message,
                             retrofit2.Response<okhttp3.ResponseBody> response)
        Initializes a new instance of the RestException class.
        Parameters:
        message - the exception message or the response content if a message is not available
        response - the HTTP response
      • RestException

        public RestException​(String message,
                             retrofit2.Response<okhttp3.ResponseBody> response,
                             Object body)
        Initializes a new instance of the RestException class.
        Parameters:
        message - the exception message or the response content if a message is not available
        response - the HTTP response
        body - the deserialized response body
    • Method Detail

      • response

        public retrofit2.Response<okhttp3.ResponseBody> response()
        Returns:
        information about the associated HTTP response
      • body

        public Object body()
        Returns:
        the HTTP response body