Class DnsErrorCauseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.netty.resolver.dns.DnsErrorCauseException
- All Implemented Interfaces:
Serializable
A metadata carrier exception, to propagate
DnsResponseCode information as an enrichment
within the UnknownHostException cause.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDnsErrorCauseException(String message, DnsResponseCode code) privateDnsErrorCauseException(String message, DnsResponseCode code, boolean shared) -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Returns the DNS error-code that caused theUnknownHostException.(package private) static DnsErrorCauseExceptionnewStatic(String message, DnsResponseCode code, Class<?> clazz, String method) Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
code
-
-
Constructor Details
-
DnsErrorCauseException
-
DnsErrorCauseException
-
-
Method Details
-
fillInStackTrace
- Overrides:
fillInStackTracein classThrowable
-
getCode
Returns the DNS error-code that caused theUnknownHostException.- Returns:
- the DNS error-code that caused the
UnknownHostException.
-
newStatic
static DnsErrorCauseException newStatic(String message, DnsResponseCode code, Class<?> clazz, String method)
-