org.inspektr.error.web
Class ErrorLogHandlerExceptionResolver
java.lang.Object
org.inspektr.error.web.ErrorLogHandlerExceptionResolver
- All Implemented Interfaces:
- org.springframework.core.Ordered, org.springframework.web.servlet.HandlerExceptionResolver
public final class ErrorLogHandlerExceptionResolver
- extends Object
- implements org.springframework.web.servlet.HandlerExceptionResolver, org.springframework.core.Ordered
A HandlerExceptionResolver
implementation that reports uncaught
exceptions during handler mapping or execution to a configured
ErrorLogManager
.
HanderExceptionResolvers
should be ordered. If the application has
other resolvers in addition to the ErrorLogHandlerExceptionResolver
,
it should make sure that the ErrorLogHandlerExceptionResolver
has
the lowest order value (i.e. highest priority) so as to make sure that this
resolver is always invoked.
- Since:
- 1.0
- Version:
- $Revision: 1.3 $ $Date: 2007/07/11 20:48:46 $
- Author:
- Alice Leung
Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Method Summary |
int |
getOrder()
|
org.springframework.web.servlet.ModelAndView |
resolveException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
Exception exception)
|
void |
setOrder(int order)
Sets the order value for this resolver. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorLogHandlerExceptionResolver
public ErrorLogHandlerExceptionResolver(ErrorLogManager errorlogManager)
- Constructs a new
ErrorLogHandlerExceptionResolver
.
- Parameters:
errorlogManager
- the ErrorLogManager facility to use
resolveException
public org.springframework.web.servlet.ModelAndView resolveException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
Exception exception)
- Specified by:
resolveException
in interface org.springframework.web.servlet.HandlerExceptionResolver
setOrder
public void setOrder(int order)
- Sets the order value for this resolver.
- Parameters:
order
- The order value for this resolver.
getOrder
public int getOrder()
- Specified by:
getOrder
in interface org.springframework.core.Ordered
Copyright © 2007-2012. All Rights Reserved.