net.tomp2p.connection
Class PeerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.tomp2p.connection.PeerException
- All Implemented Interfaces:
- Serializable
public class PeerException
- extends Exception
This exception is used internally and passed over to the method exceptionCaught. A PeerException always has a cause
- Author:
- Thomas Bocek
- See Also:
- Serialized Form
PeerException
public PeerException(PeerException.AbortCause abortCause,
String message)
- Specified error with custom message
- Parameters:
abortCause
- either USER_ABORT, PEER_ERROR, PEER_ABORT, or TIMEOUT.message
- Custom message
getAbortCause
public PeerException.AbortCause getAbortCause()
- Returns:
- The cause of the error.
toString
public String toString()
- Overrides:
toString
in class Throwable
Copyright © 2013. All Rights Reserved.