|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.search.bridge.util.impl.ContextualExceptionBridgeHelper
public final class ContextualExceptionBridgeHelper
Wrap the exception with an exception provide contextual feedback. This class is designed to be reused, but is not threadsafe.
Constructor Summary | |
---|---|
ContextualExceptionBridgeHelper()
|
Method Summary | |
---|---|
protected BridgeException |
buildBridgeException(Exception e,
String method)
|
FieldBridge |
oneWayConversionContext(FieldBridge delegate)
Decorates a FieldBridge. |
ConversionContext |
popProperty()
Pops the last pushed property from the stack. |
ConversionContext |
pushIdentifierProperty()
In case the next conversion fails, the error message will point to the document id of the currently indexed type. |
ConversionContext |
pushProperty(String property)
The context has an internal stack for graph navigation. |
ConversionContext |
setClass(Class<?> clazz)
In case the next conversion fails, the error message will point to this type. |
StringBridge |
stringConversionContext(StringBridge delegate)
Decorates a StringBridge. |
TwoWayFieldBridge |
twoWayConversionContext(TwoWayFieldBridge delegate)
Decorates a TwoWayFieldBridge. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextualExceptionBridgeHelper()
Method Detail |
---|
public ConversionContext setClass(Class<?> clazz)
ConversionContext
setClass
in interface ConversionContext
clazz
- the class type which is going to be converted
public ConversionContext pushProperty(String property)
ConversionContext
ConversionContext.popProperty()
,
especially after exceptions.
pushProperty
in interface ConversionContext
property
- the property which is being followed for embedded indexing
public ConversionContext popProperty()
ConversionContext
ConversionContext.pushIdentifierProperty()
and ConversionContext.pushProperty(String)
}
popProperty
in interface ConversionContext
public ConversionContext pushIdentifierProperty()
ConversionContext
pushIdentifierProperty
in interface ConversionContext
protected BridgeException buildBridgeException(Exception e, String method)
public FieldBridge oneWayConversionContext(FieldBridge delegate)
ConversionContext
oneWayConversionContext
in interface ConversionContext
delegate
- set the bridge that shall be used by the decoration.
public TwoWayFieldBridge twoWayConversionContext(TwoWayFieldBridge delegate)
ConversionContext
twoWayConversionContext
in interface ConversionContext
delegate
- set the bridge that shall be used by the decoration.
public StringBridge stringConversionContext(StringBridge delegate)
ConversionContext
stringConversionContext
in interface ConversionContext
delegate
- set the bridge that shall be used by the decoration.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |