org.apache.directory.server.dns
Class DnsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.directory.server.dns.DnsException
All Implemented Interfaces:
java.io.Serializable

public class DnsException
extends java.lang.Exception

The root of the DNS exception hierarchy.

Version:
$Rev: 434437 $, $Date: 2006-08-24 13:12:52 -0400 (Thu, 24 Aug 2006) $
Author:
Apache Directory Project
See Also:
Serialized Form

Constructor Summary
DnsException(ResponseCode responseCode)
          Creates a DnsException with a response code.
 
Method Summary
 int getResponseCode()
          Gets the protocol response code associated with this DnsException.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DnsException

public DnsException(ResponseCode responseCode)
Creates a DnsException with a response code.

Parameters:
responseCode - the response code associated with this DnsException
Method Detail

getResponseCode

public int getResponseCode()
Gets the protocol response code associated with this DnsException.

Returns:
the response code associated with this DnsException