Class GXResponseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.gcube.common.gxhttp.reference.GXResponseException
All Implemented Interfaces:
Serializable

public class GXResponseException extends IOException
Thrown when a request was handed to the server but no response status was received (e.g. the read timeout expired, or the connection was closed while waiting for the response): the server may have processed the request, so resending it may repeat its effect.

A failure before the request reaches the server (refused connection, unknown host, connect timeout) is thrown as it is, and means the server did not process the request. Any other failure while sending the request or waiting for the response, a failure while writing the body included, is reported with this exception.

Author:
Luca Frosini (ISTI-CNR)
See Also:
  • Constructor Details

    • GXResponseException

      public GXResponseException(String message, Throwable cause)
      Creates the exception.
      Parameters:
      message - the message
      cause - the failure that occurred while waiting for the response status