Class OpenSearchExceptionUtils

java.lang.Object
com.atlassian.confluence.plugins.opensearch.OpenSearchExceptionUtils

public final class OpenSearchExceptionUtils extends Object
Contains utility methods to deal with OpenSearchException
Since:
9.0
  • 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 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