mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user