Class ClientDeliveryStateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.qpid.protonj2.client.exceptions.ClientException
-
- org.apache.qpid.protonj2.client.exceptions.ClientIllegalStateException
-
- org.apache.qpid.protonj2.client.exceptions.ClientDeliveryStateException
-
- All Implemented Interfaces:
java.io.Serializable
public class ClientDeliveryStateException extends ClientIllegalStateException
Thrown from client API that deal with aDeliveryorTrackerwhere the outcome that results from that API can affect whether the API call succeeded or failed. Such a case might be that a sent message is awaiting a remoteAcceptedoutcome but instead the remote sends aRejectedoutcome.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientDeliveryStateException(java.lang.String message, java.lang.Throwable cause, DeliveryState outcome)Create a new instance of the client delivery state error.ClientDeliveryStateException(java.lang.String message, DeliveryState outcome)Create a new instance of the client delivery state error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeliveryStategetOutcome()
-
-
-
Constructor Detail
-
ClientDeliveryStateException
public ClientDeliveryStateException(java.lang.String message, DeliveryState outcome)Create a new instance of the client delivery state error.- Parameters:
message- The message that describes the cause of the error.outcome- TheDeliveryStatethat caused the error.
-
ClientDeliveryStateException
public ClientDeliveryStateException(java.lang.String message, java.lang.Throwable cause, DeliveryState outcome)Create a new instance of the client delivery state error.- Parameters:
message- The message that describes the cause of the error.cause- The exception that initially triggered this error.outcome- TheDeliveryStatethat caused the error.
-
-
Method Detail
-
getOutcome
public DeliveryState getOutcome()
- Returns:
- the
DeliveryStatethat defines the outcome returned from the remote peer.
-
-