Class PeerEventingServiceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.hyperledger.fabric.sdk.exception.BaseException
-
- org.hyperledger.fabric.sdk.exception.TransactionException
-
- org.hyperledger.fabric.sdk.exception.PeerEventingServiceException
-
public class PeerEventingServiceException extends TransactionException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PeerEventingServiceException(java.lang.String message)
PeerEventingServiceException(java.lang.String message, java.lang.Throwable parent)
PeerEventingServiceException(java.lang.Throwable t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse
getResp()
If response from the Peer's error is received return it.long
getTimedOut()
void
setResponse(org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse resp)
void
setTimedOut(long peerEventRegistrationWaitTimeMilliSecs)
-
-
-
Constructor Detail
-
PeerEventingServiceException
public PeerEventingServiceException(java.lang.String message, java.lang.Throwable parent)
-
PeerEventingServiceException
public PeerEventingServiceException(java.lang.String message)
-
PeerEventingServiceException
public PeerEventingServiceException(java.lang.Throwable t)
-
-
Method Detail
-
getTimedOut
public long getTimedOut()
- Returns:
- if timed out the time that was waited; otherwise, -1
-
getResp
public org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse getResp()
If response from the Peer's error is received return it.- Returns:
- Response error from peer if received otherwise null.
-
setResponse
public void setResponse(org.hyperledger.fabric.protos.peer.PeerEvents.DeliverResponse resp)
-
setTimedOut
public void setTimedOut(long peerEventRegistrationWaitTimeMilliSecs)
-
-