Class SearchIndexException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opencastproject.opensearch.api.SearchIndexException
- All Implemented Interfaces:
Serializable
Exception that is thrown if service level error states occur when working with a search index.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSearchIndexException(String message) Creates a new search index exception with the given message.SearchIndexException(String message, Throwable cause) Creates a new search index exception with the given message and root cause.SearchIndexException(String message, Throwable cause, boolean badRequest) Creates a new search index exception with the given message and root cause.SearchIndexException(Throwable cause) Creates a new search index exception with the given root cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SearchIndexException
Creates a new search index exception with the given message and root cause.- Parameters:
message- the exception messagecause- the root cause
-
SearchIndexException
Creates a new search index exception with the given message and root cause.- Parameters:
message- the exception messagecause- the root causebadRequest- 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
Creates a new search index exception with the given message.- Parameters:
message- the exception message
-
SearchIndexException
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.
-