if (streamException instanceof ReceiverGoneException) {
monitor.subTask(Messages.SendFileAction_monitor_receiver_left_during_transfer_text);
return Status.CANCEL_STATUS;
}
if (streamException instanceof ConnectionException) {
monitor.subTask(Messages.SendFileAction_monitor_lost_connection_text);
return Status.CANCEL_STATUS;
}
log.error("Unexpected error: ", streamException); //$NON-NLS-1$
return new Status(IStatus.ERROR, Saros.SAROS,
Messages.SendFileAction_status_unexpected_error_text, streamException);