public class HttpConnectException extends RuntimeException
Constructor and Description |
---|
HttpConnectException(URL url,
String message,
Throwable cause)
Constructs an
HttpUnknownHostException with the specified message and cause. |
Modifier and Type | Method and Description |
---|---|
URL |
getUrl()
Return the URL used during the connection failure.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HttpConnectException(URL url, String message, Throwable cause)
HttpUnknownHostException
with the specified message and cause.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.)public URL getUrl()
URL
causing the connection failure.Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA