public class HttpConnectException extends AbstractRuntimeException
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.
|
getMessage, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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 AbstractRuntimeException.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.<i>Copyright (c) 2022, SAS Institute Inc., Cary, NC, USA</i>