Class ServiceClientHTTPException

  • All Implemented Interfaces:
    Serializable

    public class ServiceClientHTTPException
    extends GeneralException
    In cases where there is a problem with a request (defined as getting a non-success status code back) this will wrap the content and the status code for further processing. Standard use of this has the content AND the message. The message may be empty, but if there is another cause it will be set. Properly the message should be logged and the content parsed for further use.

    Created by Jeff Gaynor
    on 10/22/15 at 4:30 PM

    See Also:
    Serialized Form
    • Constructor Detail

      • ServiceClientHTTPException

        public ServiceClientHTTPException()
      • ServiceClientHTTPException

        public ServiceClientHTTPException​(Throwable cause)
      • ServiceClientHTTPException

        public ServiceClientHTTPException​(String message)
      • ServiceClientHTTPException

        public ServiceClientHTTPException​(String message,
                                          Throwable cause)
    • Method Detail

      • hasContent

        public boolean hasContent()
      • getContent

        public String getContent()
        This should have the body of the response as a string.
        Returns:
      • setContent

        public void setContent​(String content)
      • getStatus

        public int getStatus()
        This should have the status code returned by the server.
        Returns:
      • setStatus

        public void setStatus​(int status)