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

momento.sdk.messages.DeleteCacheResponse Maven / Gradle / Ivy

There is a newer version: 1.17.0
Show newest version
package momento.sdk.messages;

import momento.sdk.exceptions.SdkException;

/** Response for a delete cache operation */
public interface DeleteCacheResponse {

  /** A successful delete cache operation. */
  class Success implements DeleteCacheResponse {}

  /**
   * A failed delete cache 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 DeleteCacheResponse {

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy