Package io.netty.resolver.dns
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
ConstructorsModifierConstructorDescriptionprivate
DnsErrorCauseException
(String message, DnsResponseCode code) private
DnsErrorCauseException
(String message, DnsResponseCode code, boolean shared) -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Returns the DNS error-code that caused theUnknownHostException
.(package private) static DnsErrorCauseException
newStatic
(String message, DnsResponseCode code, Class<?> clazz, String method) Methods inherited from class java.lang.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:
fillInStackTrace
in 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)
-