@Component(value="cuba_UniqueConstraintViolationHandler") public class UniqueConstraintViolationHandler extends java.lang.Object implements GenericExceptionHandler, org.springframework.core.Ordered
UiExceptionHandler.UiContext
Modifier and Type | Field and Description |
---|---|
protected ClientConfig |
clientConfig |
protected Messages |
messages |
HIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE
Constructor and Description |
---|
UniqueConstraintViolationHandler() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doHandle(java.lang.Throwable throwable,
WindowManager windowManager) |
int |
getOrder() |
boolean |
handle(java.lang.Throwable exception,
WindowManager windowManager)
Handle an exception.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handle
@Inject protected Messages messages
@Inject protected ClientConfig clientConfig
public boolean handle(java.lang.Throwable exception, WindowManager windowManager)
GenericExceptionHandler
handle
in interface GenericExceptionHandler
exception
- exception instancewindowManager
- WindowManagerImpl instanceprotected boolean doHandle(java.lang.Throwable throwable, WindowManager windowManager)
public int getOrder()
getOrder
in interface org.springframework.core.Ordered