Package org.xbill.DNS.lookup
Class ServerFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.xbill.DNS.lookup.LookupFailedException
org.xbill.DNS.lookup.ServerFailedException
- All Implemented Interfaces:
Serializable
Represents a server failure. The upstream server responding to the request returned a
Rcode.SERVFAIL status.- Since:
- 3.4
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServerFailedException(Name name, int type) Creates a new instance of this class.ServerFailedException(Name name, int type, ExtendedErrorCodeOption extendedRcode) Creates a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionAn extended error code explaining why the server failed to return a result.Methods inherited from class org.xbill.DNS.lookup.LookupFailedException
getName, getTypeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServerFailedException
public ServerFailedException() -
ServerFailedException
Creates a new instance of this class.- Parameters:
name- The name in the query that caused the failure.type- The type in the query that caused the failure.- Since:
- 3.6
-
ServerFailedException
Creates a new instance of this class.- Parameters:
name- The name in the query that caused the failure.type- The type in the query that caused the failure.extendedRcode- An extended error code explaining why the server failed to return a result.- Since:
- 3.6
-
-
Method Details
-
getExtendedRcode
An extended error code explaining why the server failed to return a result. May benull.- Since:
- 3.6
-