org.springframework.web.servlet.view.json.error
Class HttpStatusError

java.lang.Object
  extended by org.springframework.web.servlet.view.json.error.HttpStatusError
All Implemented Interfaces:
JsonErrorHandler

public class HttpStatusError
extends Object
implements JsonErrorHandler


Field Summary
static int DEFAULT_JSON_ERROR_STATUS
           
 
Constructor Summary
HttpStatusError()
           
 
Method Summary
 int getErrorCode()
           
 void setErrorCode(int errorCode)
           
 void triggerError(Map model, org.springframework.web.servlet.support.RequestContext rc, org.springframework.validation.BindingResult br, 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

DEFAULT_JSON_ERROR_STATUS

public static final int DEFAULT_JSON_ERROR_STATUS
See Also:
Constant Field Values
Constructor Detail

HttpStatusError

public HttpStatusError()
Method Detail

triggerError

public void triggerError(Map model,
                         org.springframework.web.servlet.support.RequestContext rc,
                         org.springframework.validation.BindingResult br,
                         javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws Exception
Specified by:
triggerError in interface JsonErrorHandler
Throws:
Exception

getErrorCode

public int getErrorCode()

setErrorCode

public void setErrorCode(int errorCode)


Copyright © 2010. All Rights Reserved.