Web Scripts:

- show full exception stack in default status response templates

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5882 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2007-06-07 13:30:43 +00:00
parent 1a89cb5e9f
commit c53842aa33
2 changed files with 36 additions and 9 deletions

View File

@@ -9,9 +9,23 @@
<exception><#if status.exception?exists>${status.exception.class.name}<#if status.exception.message?exists> - ${status.exception.message}</#if></#if></exception>
<callstack>
<#if status.exception?exists>
<#list status.exception.stackTrace as element>
${element}
</#list>
<@recursestack status.exception/>
</#if>
</callstack>
</response>
</response>
<#macro recursestack exception>
<#if exception.cause?exists>
<@recursestack exception=exception.cause/>
</#if>
<#if exception.cause?exists == false>
${exception}
<#list exception.stackTrace as element>
${element}
</#list>
<#else>
${exception}
${exception.stackTrace[0]}
</#if>
<tr><td><td>&nbsp;
</#macro>