Class SearchIndexException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opencastproject.opensearch.api.SearchIndexException
All Implemented Interfaces:
Serializable

public class SearchIndexException extends Exception
Exception that is thrown if service level error states occur when working with a search index.
See Also:
  • Constructor Details

    • SearchIndexException

      public SearchIndexException(String message, Throwable cause)
      Creates a new search index exception with the given message and root cause.
      Parameters:
      message - the exception message
      cause - the root cause
    • SearchIndexException

      public SearchIndexException(String message, Throwable cause, boolean badRequest)
      Creates a new search index exception with the given message and root cause.
      Parameters:
      message - the exception message
      cause - the root cause
      badRequest - whether the cause was a malformed request (e.g. an invalid query) rather than an operational problem. Callers can use this to decide whether the failure is worth surfacing as an error, and whether it is safe to retry.
    • SearchIndexException

      public SearchIndexException(String message)
      Creates a new search index exception with the given message.
      Parameters:
      message - the exception message
    • SearchIndexException

      public SearchIndexException(Throwable cause)
      Creates a new search index exception with the given root cause.
      Parameters:
      cause - the root cause
  • Method Details

    • isBadRequest

      public boolean isBadRequest()
      Returns:
      whether this exception was caused by a malformed request (e.g. an invalid search query) rather than an operational problem such as a missing index or an unreachable search service.