@Component(value="cuba_DeletePolicyHandler") public class DeletePolicyHandler extends java.lang.Object implements GenericExceptionHandler, org.springframework.core.Ordered
DeletePolicyException
. Determines the exception type by searching a special marker string in the
messages of all exceptions in the chain.UiExceptionHandler.UiContext
Modifier and Type | Field and Description |
---|---|
protected Messages |
messages |
protected Metadata |
metadata |
HIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE
Constructor and Description |
---|
DeletePolicyHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
doHandle(java.lang.String message,
WindowManager windowManager) |
protected java.lang.String |
getMarker() |
int |
getOrder() |
protected java.util.regex.Pattern |
getPattern() |
boolean |
handle(java.lang.Throwable exception,
WindowManager windowManager)
Handle an exception.
|
protected MetaClass |
recognizeDeletedEntityMetaClass(java.lang.String message) |
protected MetaClass |
recognizeRelatedEntityMetaClass(java.lang.String message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handle
@Inject protected Messages messages
@Inject protected Metadata metadata
public boolean handle(java.lang.Throwable exception, WindowManager windowManager)
GenericExceptionHandler
handle
in interface GenericExceptionHandler
exception
- exception instancewindowManager
- WindowManagerImpl instanceprotected java.lang.String getMarker()
protected java.util.regex.Pattern getPattern()
protected void doHandle(java.lang.String message, WindowManager windowManager)
@Nullable protected MetaClass recognizeDeletedEntityMetaClass(java.lang.String message)
@Nullable protected MetaClass recognizeRelatedEntityMetaClass(java.lang.String message)
public int getOrder()
getOrder
in interface org.springframework.core.Ordered