DAV: throw error on broken connection

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2086 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2013-04-10 08:13:10 +00:00
parent 01f8b6a508
commit 899290b18d
1 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,7 @@ import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import java.io.*;
import java.net.NoRouteToHostException;
import java.net.SocketException;
import java.net.URL;
import java.net.UnknownHostException;
import java.text.ParseException;
@ -2770,6 +2771,10 @@ public class DavExchangeSession extends ExchangeSession {
// throw error on expired session
LOGGER.warn(e.getMessage());
throw e;
} catch (SocketException e) {
// throw error on broken connection
LOGGER.warn(e.getMessage());
throw e;
} catch (IOException e) {
LOGGER.warn("Broken message at: " + message.messageUrl + " permanentUrl: " + message.permanentUrl + ", trying to rebuild from properties");