CB-6781: plugin file-transfer: add exception info to error object

https://issues.apache.org/jira/browse/CB-6781