Class LookupFailedException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidZoneDataException, NoSuchDomainException, NoSuchRRSetException, RedirectOverflowException, ServerFailedException

public class LookupFailedException extends RuntimeException
A base class for all types of things that might fail when making a DNS lookup.
Since:
3.4
See Also:
  • Constructor Details

    • LookupFailedException

      public LookupFailedException()
    • LookupFailedException

      public LookupFailedException(String message)
    • LookupFailedException

      public LookupFailedException(Name name, int type)
      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

      public 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.
      Parameters:
      name - the name that caused the failure.
      type - the type that caused the failure.
      Since:
      3.6
  • Method Details

    • getName

      public Name getName()
      Gets the Name being looked up when this failure occurred.
    • getType

      public int getType()
      Gets the Type being looked up when this failure occurred.