org.nhindirect.dns
Class DNSException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.nhindirect.dns.DNSException
All Implemented Interfaces:
Serializable

public class DNSException
extends Exception

Exception for DNS server errors.

Since:
1.0
Author:
Greg Meyer
See Also:
Serialized Form

Constructor Summary
DNSException(DNSError<?> error)
          Construct an exception with a given DNS error.
DNSException(DNSError<?> error, Exception innerException)
          Constructs an exception with the DNS error and the exception that caused the error.
DNSException(DNSError<?> error, String message)
          Constructs an exception with a message and the DNS error.
DNSException(DNSError<?> error, String message, Exception innerException)
          Constructs an exception with the DNS error, a message, and the exception that caused the error.
DNSException(String error)
          Construct an exception with an error message.
 
Method Summary
 DNSError<?> getError()
          Gets the internal DNSError.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DNSException

public DNSException(String error)
Construct an exception with an error message.

Parameters:
error - The error message.

DNSException

public DNSException(DNSError<?> error)
Construct an exception with a given DNS error.

Parameters:
error - The DNS error.

DNSException

public DNSException(DNSError<?> error,
                    String message)
Constructs an exception with a message and the DNS error.

Parameters:
error - The DNS error
msg - The exception message.

DNSException

public DNSException(DNSError<?> error,
                    Exception innerException)
Constructs an exception with the DNS error and the exception that caused the error.

Parameters:
error - The DNS error.
innerException - The exception that caused the error.

DNSException

public DNSException(DNSError<?> error,
                    String message,
                    Exception innerException)
Constructs an exception with the DNS error, a message, and the exception that caused the error.

Parameters:
error - The DNS error.
msg - The exception message.
innerException - The exception that caused the error.
Method Detail

getError

public DNSError<?> getError()
Gets the internal DNSError.

Returns:
The internal DNSError.


Copyright © 2010-2015 The Direct Project. All Rights Reserved.