CLOUD-1988 "Intermittent test failure: org.alfresco.rest.api.tests.CloudOpenCMISTCKTest.testCMISTCKQuery" extra exception logging to help diagnose

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55287 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Steven Glover
2013-09-13 11:25:18 +00:00
parent 06f6d18221
commit d333945942

View File

@@ -1657,7 +1657,15 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
}
else
{
throw new CmisRuntimeException("Failed to retrieve content: " + e.getMessage(), e);
StringBuilder msg = new StringBuilder("Failed to retrieve content: " + e.getMessage());
Throwable cause = e.getCause();
if(cause != null)
{
// add the cause to the CMIS exception
msg.append(", ");
msg.append(cause.getMessage());
}
throw new CmisRuntimeException(msg.toString(), e);
}
}