freemarker.components.stacktrace.ftl Maven / Gradle / Ivy
<#macro stacktrace(title, cause, id) >
${cause.errorType}
<#list cause.stackTrace as element>${element.className?trim}.${element.methodName}(${(element.fileName)!""}:${element.lineNumber})
#list>
<#if (cause.rootCause.isPresent())>
Caused by: ${cause.rootCause.get().errorType}
<#if (cause.rootCause.get().message)??>
${formatter.messageBody(cause.rootCause.get().message)}
#if>
<#list cause.rootCause.get().stackTrace as element>${element.className?trim}.${element.methodName}(${(element.fileName)!""} :${element.lineNumber})
#list>
#if>
#macro>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy