public class PeerException extends Exception
Modifier and Type | Class and Description |
---|---|
static class |
PeerException.AbortCause
USER_ABORT means that this peer aborts the communication.
|
Constructor and Description |
---|
PeerException(PeerException.AbortCause abortCause,
String message)
Specified error with custom message
|
Modifier and Type | Method and Description |
---|---|
PeerException.AbortCause |
getAbortCause() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public PeerException(PeerException.AbortCause abortCause, String message)
abortCause
- either USER_ABORT, PEER_ERROR, PEER_ABORT, or TIMEOUT.message
- Custom messagepublic PeerException.AbortCause getAbortCause()
Copyright © 2013. All Rights Reserved.