Class ExceptionMappingInterceptor

java.lang.Object
com.opensymphony.xwork2.interceptor.AbstractInterceptor
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor
name.matthewgreet.strutscommons.interceptor.ExceptionMappingInterceptor
All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor, Serializable

public class ExceptionMappingInterceptor extends com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor
Overrides ExceptionMappingInterceptor to always enable logging at ERROR level using the Action's class as the logging category. That is, parameters are ignored. Rather than use default of no logging, debug level if switched on and logging category is interceptor's class name.
See Also:
  • Field Summary

    Fields inherited from class com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor

    categoryLogger, logCategory, logEnabled, logLevel
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    intercept(com.opensymphony.xwork2.ActionInvocation invocation)
     

    Methods inherited from class com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor

    doLog, findMappingFromExceptions, getDepth, getLogCategory, getLogLevel, handleLogging, isLogEnabled, publishException, setLogCategory, setLogEnabled, setLogLevel

    Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor

    destroy, init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExceptionMappingInterceptor

      public ExceptionMappingInterceptor()
  • Method Details

    • intercept

      public String intercept(com.opensymphony.xwork2.ActionInvocation invocation) throws Exception
      Specified by:
      intercept in interface com.opensymphony.xwork2.interceptor.Interceptor
      Overrides:
      intercept in class com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor
      Throws:
      Exception