org.riotfamily.common.web.util
Class AdvancedMappingExceptionResolver

java.lang.Object
  extended by org.springframework.web.servlet.handler.SimpleMappingExceptionResolver
      extended by org.riotfamily.common.web.util.AdvancedMappingExceptionResolver
All Implemented Interfaces:
Ordered, HandlerExceptionResolver

public class AdvancedMappingExceptionResolver
extends SimpleMappingExceptionResolver

Extends the SimpleMappingExceptionResolver and adds the root-cause of the exception to the model.

Author:
Felix Gnass [fgnass at neteye dot de]

Field Summary
 
Fields inherited from class org.springframework.web.servlet.handler.SimpleMappingExceptionResolver
DEFAULT_EXCEPTION_ATTRIBUTE, logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
AdvancedMappingExceptionResolver()
           
 
Method Summary
protected  ModelAndView getModelAndView(String viewName, Exception ex)
           
 void setRootCaseAttribute(String rootCaseAttribute)
           
 
Methods inherited from class org.springframework.web.servlet.handler.SimpleMappingExceptionResolver
applyStatusCodeIfPossible, buildLogMessage, determineStatusCode, determineViewName, doResolveException, findMatchingViewName, getDepth, getModelAndView, getOrder, logException, resolveException, setDefaultErrorView, setDefaultStatusCode, setExceptionAttribute, setExceptionMappings, setMappedHandlerClasses, setMappedHandlers, setOrder, setWarnLogCategory, shouldApplyTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvancedMappingExceptionResolver

public AdvancedMappingExceptionResolver()
Method Detail

setRootCaseAttribute

public void setRootCaseAttribute(String rootCaseAttribute)

getModelAndView

protected ModelAndView getModelAndView(String viewName,
                                       Exception ex)
Overrides:
getModelAndView in class SimpleMappingExceptionResolver