public abstract class AbstractResponseErrorProcessor extends Object implements IResponseErrorProcessor
Constructor and Description |
---|
AbstractResponseErrorProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
doProcessError(IWebMvc owner,
Throwable unwrapThrow) |
protected void |
doProcessErrorStatusCodeIfNeed(IWebMvc owner) |
String |
exceptionAnalysis(Throwable e) |
String |
getErrorDefaultViewFormat(IWebMvc owner) |
boolean |
isAnalysisDisabled(IWebMvc owner) |
boolean |
isErrorWithStatusCode(IWebMvc owner) |
IView |
processError(IWebMvc owner,
Throwable e)
处理异常
|
void |
setAnalysisDisabled(boolean analysisDisabled) |
void |
setErrorDefaultViewFormat(String errorDefaultViewFormat) |
void |
setErrorWithStatusCode(boolean errorWithStatusCode) |
abstract IView |
showErrorMsg(IWebMvc owner,
String code,
String msg,
Map<String,Object> dataMap) |
IView |
showValidationResults(IWebMvc owner,
Map<String,ValidateResult> results) |
public IView processError(IWebMvc owner, Throwable e)
IResponseErrorProcessor
processError
in interface IResponseErrorProcessor
owner
- 所属YMP框架管理器实例e
- 异常对象public IView showValidationResults(IWebMvc owner, Map<String,ValidateResult> results)
public abstract IView showErrorMsg(IWebMvc owner, String code, String msg, Map<String,Object> dataMap)
protected void doProcessErrorStatusCodeIfNeed(IWebMvc owner)
public void setErrorDefaultViewFormat(String errorDefaultViewFormat)
public boolean isErrorWithStatusCode(IWebMvc owner)
public void setErrorWithStatusCode(boolean errorWithStatusCode)
public boolean isAnalysisDisabled(IWebMvc owner)
public void setAnalysisDisabled(boolean analysisDisabled)
Copyright © 2022. All rights reserved.