@Component public class ExceptionDirective extends AbstractTemplateDirective
返回结果
object
:异常字符串
<@tools.exception>${object}</@tools.exception>
ADVANCED, AUTH_TOKEN, AUTH_USER_ID, siteComponent
log
构造器和说明 |
---|
ExceptionDirective() |
限定符和类型 | 方法和说明 |
---|---|
private static java.lang.String |
exceptionMsgForInner(java.lang.Throwable e) |
void |
execute(RenderHandler handler) |
boolean |
httpEnabled() |
execute, expose, getAdvanced, getApp, getSite, getUserId, needAppToken, needUserToken, supportAdvanced
execute, getName, getNamespace, getShortName, setName, setNamespace, setShortName
public void execute(RenderHandler handler) throws java.io.IOException, freemarker.template.TemplateException
java.io.IOException
freemarker.template.TemplateException
private static java.lang.String exceptionMsgForInner(java.lang.Throwable e)
public boolean httpEnabled()
httpEnabled
在类中 BaseTemplateDirective