Class ExceptionMappingInterceptor
java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
com.opensymphony.xwork2.interceptor.AbstractInterceptor
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor
name.matthewgreet.strutscommons.interceptor.ExceptionMappingInterceptor
- All Implemented Interfaces:
ConditionalInterceptor, Interceptor, Serializable, ConditionalInterceptor, Interceptor
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface ConditionalInterceptor
ConditionalInterceptor.LegacyAdapter -
Field Summary
Fields inherited from class ExceptionMappingInterceptor
categoryLogger, logCategory, logEnabled, logLevel -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ExceptionMappingInterceptor
doLog, findMappingFromExceptions, getDepth, getLogCategory, getLogLevel, handleLogging, isLogEnabled, publishException, setLogCategory, setLogEnabled, setLogLevelMethods inherited from class AbstractInterceptor
intercept, shouldIntercept, shouldInterceptMethods inherited from class AbstractInterceptor
destroy, init, setDisabledMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Interceptor
destroy, init
-
Constructor Details
-
ExceptionMappingInterceptor
public ExceptionMappingInterceptor()
-
-
Method Details
-
intercept
- Specified by:
interceptin interfaceInterceptor- Overrides:
interceptin classExceptionMappingInterceptor- Throws:
Exception
-