org.springframework.web.servlet.view.json.error
Class HttpStatusError
java.lang.Object
org.springframework.web.servlet.view.json.error.HttpStatusError
- All Implemented Interfaces:
- JsonErrorHandler
public class HttpStatusError
- extends Object
- implements JsonErrorHandler
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 |
DEFAULT_JSON_ERROR_STATUS
public static final int DEFAULT_JSON_ERROR_STATUS
- See Also:
- Constant Field Values
HttpStatusError
public HttpStatusError()
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.