Package org.hibernate.search.util.common
Class SearchException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.hibernate.search.util.common.SearchException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SearchTimeoutException
public class SearchException extends RuntimeException
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringSEARCH_EXCEPTION_AND_SUBCLASSES_CAN_USE_CONSTRUCTOR
-
Constructor Summary
Constructors Constructor Description SearchException(String message)SearchException(String message, Throwable cause)SearchException(String message, Throwable cause, EventContext context)SearchException(String message, EventContext context)SearchException(Throwable cause)SearchException(Throwable cause, EventContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventContextcontext()StringmessageWithoutContext()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
SEARCH_EXCEPTION_AND_SUBCLASSES_CAN_USE_CONSTRUCTOR
protected static final String SEARCH_EXCEPTION_AND_SUBCLASSES_CAN_USE_CONSTRUCTOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SearchException
@SuppressForbiddenApis(reason="SearchException and its subclasses are allowed to use SearchException constructors without delegating to Jboss-Logging.") public SearchException(String message)
-
SearchException
@SuppressForbiddenApis(reason="SearchException and its subclasses are allowed to use SearchException constructors without delegating to Jboss-Logging.") public SearchException(Throwable cause)
-
SearchException
@SuppressForbiddenApis(reason="SearchException and its subclasses are allowed to use SearchException constructors without delegating to Jboss-Logging.") public SearchException(String message, Throwable cause, EventContext context)
-
SearchException
@SuppressForbiddenApis(reason="SearchException and its subclasses are allowed to use SearchException constructors without delegating to Jboss-Logging.") public SearchException(String message, EventContext context)
-
SearchException
@SuppressForbiddenApis(reason="SearchException and its subclasses are allowed to use SearchException constructors without delegating to Jboss-Logging.") public SearchException(Throwable cause, EventContext context)
-
-
Method Detail
-
messageWithoutContext
public String messageWithoutContext()
- Returns:
- The exception message, without the description of the context.
-
context
public EventContext context()
- Returns:
- The context in which this exception occurred.
-
-