Top Description Fields Constructors Methods
io.netty.resolver.dns

public final Class DnsErrorCauseException

extends RuntimeException
Class Inheritance
Imports
io.netty.handler.codec.dns.DnsResponseCode, io.netty.util.internal.PlatformDependent, .SuppressJava6Requirement, .ThrowableUtil, java.net.UnknownHostException

A metadata carrier exception, to propagate DnsResponseCode information as an enrichment within the UnknownHostException cause.

Field Summary

Modifier and TypeField and Description
private final DnsResponseCode
private static final long

Constructor Summary

AccessConstructor and Description
private
private
DnsErrorCauseException(String message, DnsResponseCode code, boolean shared)

Method Summary

Modifier and TypeMethod and Description
public Throwable
fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace.
public DnsResponseCode

Returns:

the DNS error-code that caused the UnknownHostException.
getCode
()

Returns the DNS error-code that caused the UnknownHostException.

pack-priv static DnsErrorCauseException
newStatic(String message, DnsResponseCode code, Class<?> clazz, String method)

Field Detail

codeback to summary
private final DnsResponseCode code
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

DnsErrorCauseExceptionback to summary
private DnsErrorCauseException(String message, DnsResponseCode code)
DnsErrorCauseExceptionback to summary
private DnsErrorCauseException(String message, DnsResponseCode code, boolean shared)
Annotations
@SuppressJava6Requirement
reason:uses Java 7+ Exception.(String, Throwable, boolean, boolean) but is guarded by version checks

Method Detail

fillInStackTraceback to summary
public Throwable fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Doc from java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace. This method records within this Throwable object information about the current state of the stack frames for the current thread.

If the stack trace of this Throwable is not writable, calling this method has no effect.

Returns:Throwable

a reference to this Throwable instance.

Annotations
@Override
getCodeback to summary
public DnsResponseCode getCode()

Returns the DNS error-code that caused the UnknownHostException.

Returns:DnsResponseCode

the DNS error-code that caused the UnknownHostException.

newStaticback to summary
pack-priv static DnsErrorCauseException newStatic(String message, DnsResponseCode code, Class<?> clazz, String method)