|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TransactionExceptionHandler
Interface that can be implemented by
TransactionalHandlers in order to react on errors during a commit
or rollback operation.
| Method Summary | |
|---|---|
ModelAndView |
commitFailed(Exception ex,
ModelAndView modelAndView,
HttpServletRequest request,
HttpServletResponse response)
Invoked by the TransactionalHandlerInterceptor when an
Exception occurs during commit. |
ModelAndView |
rollbackFailed(TransactionException ex,
Exception rollbackCause,
HttpServletRequest request,
HttpServletResponse response)
Invoked by the TransactionalHandlerInterceptor when a
TransactionException occurs during rollback. |
| Method Detail |
|---|
ModelAndView commitFailed(Exception ex,
ModelAndView modelAndView,
HttpServletRequest request,
HttpServletResponse response)
TransactionalHandlerInterceptor when an
Exception occurs during commit. Implementors may return a ModelAndView
or null in which case the exception is re-thrown.
ex - The exception thrown by the PlatformTransactionManagermodelAndView - The original ModelAndViewrequest - The requestresponse - The response
null
ModelAndView rollbackFailed(TransactionException ex,
Exception rollbackCause,
HttpServletRequest request,
HttpServletResponse response)
TransactionalHandlerInterceptor when a
TransactionException occurs during rollback. Implementors may
return a ModelAndView or null in which case the exception
is re-thrown.
ex - The exception thrown by the PlatformTransactionManagerrollbackCause - The exception that caused the rollbackrequest - The requestresponse - The response
null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||