Class ClientDeliveryStateException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ClientDeliveryStateException
    extends ClientIllegalStateException
    Thrown from client API that deal with a Delivery or Tracker where 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 remote Accepted outcome but instead the remote sends a Rejected outcome.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DeliveryState getOutcome()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 - The DeliveryState that 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 - The DeliveryState that caused the error.
    • Method Detail

      • getOutcome

        public DeliveryState getOutcome()
        Returns:
        the DeliveryState that defines the outcome returned from the remote peer.