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:
java.io.Serializable
public final class DnsErrorCauseException extends java.lang.RuntimeException
A metadata carrier exception, to propagateDnsResponseCode
information as an enrichment within theUnknownHostException
cause.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private DnsResponseCode
code
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
DnsErrorCauseException(java.lang.String message, DnsResponseCode code)
private
DnsErrorCauseException(java.lang.String message, DnsResponseCode code, boolean shared)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
fillInStackTrace()
DnsResponseCode
getCode()
Returns the DNS error-code that caused theUnknownHostException
.(package private) static DnsErrorCauseException
newStatic(java.lang.String message, DnsResponseCode code, java.lang.Class<?> clazz, java.lang.String method)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
code
private final DnsResponseCode code
-
-
Constructor Detail
-
DnsErrorCauseException
private DnsErrorCauseException(java.lang.String message, DnsResponseCode code)
-
DnsErrorCauseException
private DnsErrorCauseException(java.lang.String message, DnsResponseCode code, boolean shared)
-
-
Method Detail
-
fillInStackTrace
public java.lang.Throwable fillInStackTrace()
- Overrides:
fillInStackTrace
in classjava.lang.Throwable
-
getCode
public DnsResponseCode 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)
-
-