mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -21,13 +21,26 @@
|
|||||||
<tr><td><b>${status.code} Description:</b><td> ${status.codeDescription}
|
<tr><td><b>${status.code} Description:</b><td> ${status.codeDescription}
|
||||||
<tr><td>
|
<tr><td>
|
||||||
<tr><td><b>Message:</b><td>${status.message!"<i><Not specified></i>"}
|
<tr><td><b>Message:</b><td>${status.message!"<i><Not specified></i>"}
|
||||||
<tr><td><b>Exception:</b><td><#if status.exception?exists>${status.exception.class.name}<#if status.exception.message?exists> - ${status.exception.message}</#if></#if>
|
|
||||||
<#if status.exception?exists>
|
<#if status.exception?exists>
|
||||||
<tr><td><td>
|
<tr><td>
|
||||||
<#list status.exception.stackTrace as element>
|
<@recursestack status.exception/>
|
||||||
<tr><td><td>${element}
|
|
||||||
</#list>
|
|
||||||
</#if>
|
</#if>
|
||||||
</table>
|
</table>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
<#macro recursestack exception>
|
||||||
|
<#if exception.cause?exists>
|
||||||
|
<@recursestack exception=exception.cause/>
|
||||||
|
</#if>
|
||||||
|
<tr><td><b>Exception:</b><td>${exception.class.name}<#if exception.message?exists> - ${exception.message}</#if>
|
||||||
|
<tr><td><td>
|
||||||
|
<#if exception.cause?exists == false>
|
||||||
|
<#list exception.stackTrace as element>
|
||||||
|
<tr><td><td>${element}
|
||||||
|
</#list>
|
||||||
|
<#else>
|
||||||
|
<tr><td><td>${exception.stackTrace[0]}
|
||||||
|
</#if>
|
||||||
|
<tr><td><td>
|
||||||
|
</#macro>
|
||||||
|
@@ -9,9 +9,23 @@
|
|||||||
<exception><#if status.exception?exists>${status.exception.class.name}<#if status.exception.message?exists> - ${status.exception.message}</#if></#if></exception>
|
<exception><#if status.exception?exists>${status.exception.class.name}<#if status.exception.message?exists> - ${status.exception.message}</#if></#if></exception>
|
||||||
<callstack>
|
<callstack>
|
||||||
<#if status.exception?exists>
|
<#if status.exception?exists>
|
||||||
<#list status.exception.stackTrace as element>
|
<@recursestack status.exception/>
|
||||||
${element}
|
|
||||||
</#list>
|
|
||||||
</#if>
|
</#if>
|
||||||
</callstack>
|
</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>
|
||||||
|
</#macro>
|
||||||
|
Reference in New Issue
Block a user