momento.sdk.responses.cache.set.SetAddElementResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Java client SDK for Momento Serverless Cache
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);
}
}
}