mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 18:58:02 -05:00
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:
parent
01f8b6a508
commit
899290b18d
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user