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
public final class DnsErrorCauseException extends RuntimeException
A metadata carrier exception, to propagateDnsResponseCodeinformation as an enrichment within theUnknownHostExceptioncause.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablefillInStackTrace()io.netty.handler.codec.dns.DnsResponseCodegetCode()Returns the DNS error-code that caused theUnknownHostException.-
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
fillInStackTrace
public Throwable fillInStackTrace()
- Overrides:
fillInStackTracein classThrowable
-
getCode
public io.netty.handler.codec.dns.DnsResponseCode getCode()
Returns the DNS error-code that caused theUnknownHostException.- Returns:
- the DNS error-code that caused the
UnknownHostException.
-
-