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