All Downloads are FREE. Search and download functionalities are using the official Maven repository.

momento.sdk.responses.cache.set.SetAddElementResponse Maven / Gradle / Ivy

There is a newer version: 1.17.0
Show newest version
package momento.sdk.responses.cache.set;

import momento.sdk.exceptions.SdkException;

/** Response for a set add element operation */
public interface SetAddElementResponse {

  /** A successful set add element operation. */
  class Success implements SetAddElementResponse {}

  /**
   * A failed set add element operation. The response itself is an exception, so it can be directly
   * thrown, or the cause of the error can be retrieved with {@link #getCause()}. The message is a
   * copy of the message of the cause.
   */
  class Error extends SdkException implements SetAddElementResponse {

    /**
     * Constructs a set add element error with a cause.
     *
     * @param cause the cause.
     */
    public Error(SdkException cause) {
      super(cause);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy