-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add docs examples for PreviewStorageClient #384
Conversation
@@ -95,7 +95,7 @@ public static void example_API_CreateCache(CacheClient cacheClient) { | |||
if (response instanceof CacheCreateResponse.Success) { | |||
System.out.println("Cache 'test-cache' created"); | |||
} else if (response instanceof CacheCreateResponse.Error error) { | |||
if (error.getCause() instanceof AlreadyExistsException) { | |||
if (error.getErrorCode() == MomentoErrorCode.ALREADY_EXISTS_ERROR) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This SDK doesn't have the this as an alternative for the create cache response unfortunately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, i noticed that. I kind of want to fix that right now, do you have any opinion on it?
No description provided.