org.p2psockets
Class P2PInetAddressException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byjava.net.UnknownHostException
                  extended byorg.p2psockets.P2PInetAddressException
All Implemented Interfaces:
java.io.Serializable

public class P2PInetAddressException
extends java.net.UnknownHostException

This class wraps the many exceptions that can be thrown from P2PInetAddress so that clients only have to deal with one type of exception. We subclass java.net.UnknownHostException so that client's who used the previous InetAddress methods can use our P2PInetAddress methods without having to catch a new kind of exception.

See Also:
Serialized Form

Constructor Summary
P2PInetAddressException(java.lang.Throwable t)
           
 
Method Summary
 java.lang.Throwable getCause()
           
 java.lang.String getLocalizedMessage()
           
 java.lang.String getMessage()
           
 java.lang.StackTraceElement[] getStackTrace()
           
 java.lang.Throwable initCause(java.lang.Throwable cause)
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 void setStackTrace(java.lang.StackTraceElement[] stackTrace)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

P2PInetAddressException

public P2PInetAddressException(java.lang.Throwable t)
Method Detail

getCause

public java.lang.Throwable getCause()

getLocalizedMessage

public java.lang.String getLocalizedMessage()

getMessage

public java.lang.String getMessage()

getStackTrace

public java.lang.StackTraceElement[] getStackTrace()

initCause

public java.lang.Throwable initCause(java.lang.Throwable cause)

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream s)

printStackTrace

public void printStackTrace(java.io.PrintWriter s)

setStackTrace

public void setStackTrace(java.lang.StackTraceElement[] stackTrace)

toString

public java.lang.String toString()