org.p2psockets
Class P2PInetAddressException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.net.UnknownHostException
org.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
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 |
P2PInetAddressException
public P2PInetAddressException(java.lang.Throwable t)
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()