Files
alfresco-community-repo/config/alfresco/templates/webscripts/xml.status.ftl
David Caruana 4ede480475 - Web Script Runtime now takes ServiceRegistry in constructor (not an explicit ever growing list of services)
- default status templates now include Alfresco server information & time of error for diagnostic purposes
- template url.match does not include service context anymore e.g. /alfresco/service/api/path/ is now just /api/path/
- added Retrying Transaction Helper to Service Registry

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6088 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-25 12:38:32 +00:00

33 lines
994 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>
<server>Alfresco ${server.edition} v${server.version} schema ${server.schema}</server>
<time>${date?datetime}</time>
</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>