com.sas.hls.client.exception
Class HttpConnectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sas.hls.client.exception.HttpConnectException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HttpUnknownHostException

public class HttpConnectException
extends RuntimeException

Exception thrown when there was communication error between the client and server.

See Also:
Serialized Form

Constructor Summary
HttpConnectException(URL url, String message, Throwable cause)
          Constructs an HttpUnknownHostException with the specified message and cause.
 
Method Summary
 URL getUrl()
          Return the URL used during the connection failure.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpConnectException

public HttpConnectException(URL url,
                            String message,
                            Throwable cause)
Constructs an HttpUnknownHostException with the specified message and cause.

Parameters:
url - the URL used during the connection failure
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Method Detail

getUrl

public URL getUrl()
Return the URL used during the connection failure.

Returns:
the URL causing the connection failure.


Copyright (c) 2014, SAS Institute Inc., Cary, NC, USA