Class OpenSearchExceptionUtils
java.lang.Object
com.atlassian.confluence.plugins.opensearch.OpenSearchExceptionUtils
Contains utility methods to deal with OpenSearchException
- Since:
- 9.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isCausedBy
(org.opensearch.client.opensearch._types.OpenSearchException e, String errorType) Determines whether an OpenSearch exception contains an error cause with the specified type
-
Method Details
-
isCausedBy
public 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 checkerrorType
- the error type to check against. SeeOpenSearchExceptionUtils.ErrorTypes
- Returns:
- true of the OpenSearch exception contains an error cause with the specified type
-