org.springframework.web.servlet.view.json.exception
Class ExceptionMessageExceptionHandler

java.lang.Object
  extended by org.springframework.web.servlet.view.json.exception.ExceptionMessageExceptionHandler
All Implemented Interfaces:
JsonExceptionHandler

public class ExceptionMessageExceptionHandler
extends java.lang.Object
implements JsonExceptionHandler


Field Summary
static java.lang.String MESSAGE_MODEL_KEY
           
 
Constructor Summary
ExceptionMessageExceptionHandler()
           
 
Method Summary
 java.lang.String getModelKey()
           
 void setModelKey(java.lang.String modelKey)
           
 void triggerException(java.lang.Exception exception, java.util.Map model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_MODEL_KEY

public static final java.lang.String MESSAGE_MODEL_KEY
See Also:
Constant Field Values
Constructor Detail

ExceptionMessageExceptionHandler

public ExceptionMessageExceptionHandler()
Method Detail

triggerException

public void triggerException(java.lang.Exception exception,
                             java.util.Map model,
                             javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws java.lang.Exception
Specified by:
triggerException in interface JsonExceptionHandler
Throws:
java.lang.Exception

getModelKey

public java.lang.String getModelKey()

setModelKey

public void setModelKey(java.lang.String modelKey)


Copyright © 2010. All Rights Reserved.