Transfer Service:

- Rehydration of exception received from target repo


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22413 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Brian Remmington
2010-09-10 16:57:06 +00:00
parent fc0821820a
commit 66d23163dd
8 changed files with 550 additions and 117 deletions

View File

@@ -674,7 +674,14 @@ public class TransferServiceImpl2 implements TransferService2
{
targetError = new TransferException(MSG_UNKNOWN_TARGET_ERROR);
}
failureException = new TransferException(MSG_TARGET_ERROR, new Object[] {targetError.getMessage()}, targetError);
if (Exception.class.isAssignableFrom(targetError.getClass()))
{
failureException = (Exception)targetError;
}
else
{
failureException = new TransferException(MSG_TARGET_ERROR, new Object[] {targetError.getMessage()}, targetError);
}
clientState = ClientTransferState.Finished;
break;
}