com.sas.hls.client.exception
Class HttpConnectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
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 |
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 failuremessage
- 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.)
getUrl
public URL getUrl()
- Return the URL used during the connection failure.
- Returns:
- the
URL
causing the connection failure.
Copyright (c) 2016, SAS Institute Inc., Cary, NC, USA