Class ExceptionTranslationAndLoggingAjaxFilter

java.lang.Object
ch.tocco.nice2.netui.impl.dwr.ExceptionTranslationAndLoggingAjaxFilter
All Implemented Interfaces:
org.directwebremoting.AjaxFilter

@Component @Order(-2147483648) public class ExceptionTranslationAndLoggingAjaxFilter extends Object implements org.directwebremoting.AjaxFilter
Handles Throwables returned by service methods.
  - translates Throwables to hide information and answer the 3 basic questions
     - who's to inform
     - was it bad
     - can the client retry
  - logs exception if useful.
 

You can mark an exception as InformationException, then it wouldn't be touched by this.

  • Constructor Details

    • ExceptionTranslationAndLoggingAjaxFilter

      public ExceptionTranslationAndLoggingAjaxFilter(ExceptionBarrier exceptionBarrier)
  • Method Details

    • doFilter

      public Object doFilter(Object object, Method method, Object[] params, org.directwebremoting.AjaxFilterChain chain) throws Exception
      Specified by:
      doFilter in interface org.directwebremoting.AjaxFilter
      Throws:
      Exception
    • setClientExceptions

      @Autowired public void setClientExceptions(Set<Class<?>> clientExceptions)
    • setExceptionHandlers

      @Autowired public void setExceptionHandlers(List<ExceptionHandler> exceptionHandlers)