mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- simplify how web scripts urls & formats are described - fix 'reset' on index page (when accessed via /) - fix xml status response (rogue html in template) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5897 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
31 lines
873 B
Plaintext
31 lines
873 B
Plaintext
<?xml version="1.0" encoding="UTF-8"?>
|
|
<response>
|
|
<status>
|
|
<code>${status.code}</code>
|
|
<name>${status.codeName}</name>
|
|
<description>${status.codeDescription}</description>
|
|
</status>
|
|
<message>${status.message!""}</message>
|
|
<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>
|
|
<@recursestack status.exception/>
|
|
</#if>
|
|
</callstack>
|
|
</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>
|
|
</#macro>
|