public class JbootErrorRender extends com.jfinal.render.Render
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
errorCode |
protected static String |
html400_header |
protected static String |
html401 |
protected static String |
html403 |
protected static String |
html404 |
protected static String |
html500_footer |
protected static String |
html500_header |
protected static String |
htmlContentType |
protected static String |
json401 |
protected static String |
json403 |
protected static String |
json404 |
protected static String |
jsonContentType |
protected String |
message |
protected static String |
poweredBy |
protected Throwable |
throwable |
| 构造器和说明 |
|---|
JbootErrorRender(int errorCode,
String view) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
buildErrorInfo(String headerHtml) |
String |
buildErrorJson() |
int |
getErrorCode() |
String |
getErrorHtml() |
String |
getErrorJson() |
String |
getMessage() |
Throwable |
getThrowable() |
void |
render() |
void |
setErrorCode(int errorCode) |
void |
setMessage(String message) |
void |
setThrowable(Throwable throwable) |
protected static final String htmlContentType
protected static final String jsonContentType
protected static final String html500_header
protected static final String html400_header
protected static final String html500_footer
protected int errorCode
public JbootErrorRender(int errorCode, String view)
public int getErrorCode()
public void setErrorCode(int errorCode)
public String getMessage()
public void setMessage(String message)
public Throwable getThrowable()
public void setThrowable(Throwable throwable)
public void render()
render 在类中 com.jfinal.render.Renderpublic String getErrorHtml()
public String buildErrorInfo(String headerHtml)
public String getErrorJson()
public String buildErrorJson()
Copyright © 2024. All rights reserved.