Class OpenSearchExceptionUtils
java.lang.Object
com.atlassian.confluence.plugins.opensearch.OpenSearchExceptionUtils
Contains utility methods to deal with OpenSearchException
- Since:
- 9.0
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanisCausedBy(org.opensearch.client.opensearch._types.OpenSearchException e, String errorType) Determines whether an OpenSearch exception contains an error cause with the specified type
- 
Method Details- 
isCausedBypublic static boolean isCausedBy(org.opensearch.client.opensearch._types.OpenSearchException e, String errorType) Determines whether an OpenSearch exception contains an error cause with the specified type- Parameters:
- e- the OpenSearch exception to check
- errorType- the error type to check against. See- OpenSearchExceptionUtils.ErrorTypes
- Returns:
- true of the OpenSearch exception contains an error cause with the specified type
 
 
-