Package org.xbill.DNS.lookup
Class LookupFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.xbill.DNS.lookup.LookupFailedException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidZoneDataException,NoSuchDomainException,NoSuchRRSetException,RedirectOverflowException,ServerFailedException
A base class for all types of things that might fail when making a DNS lookup.
- Since:
- 3.4
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLookupFailedException(String message) LookupFailedException(String message, Name name, int type) Construct a LookupFailedException with a custom message that also specifies the name and type of the lookup that failed.LookupFailedException(Name name, int type) Construct a LookupFailedException that also specifies the name and type of the lookup that failed. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LookupFailedException
public LookupFailedException() -
LookupFailedException
-
LookupFailedException
Construct a LookupFailedException that also specifies the name and type of the lookup that failed.- Parameters:
name- the name that caused the failure.type- the type that caused the failure.
-
LookupFailedException
Construct a LookupFailedException with a custom message that also specifies the name and type of the lookup that failed.- Parameters:
name- the name that caused the failure.type- the type that caused the failure.- Since:
- 3.6
-
-
Method Details
-
getName
Gets the Name being looked up when this failure occurred. -
getType
public int getType()Gets theTypebeing looked up when this failure occurred.
-