Specific message in checkConfig on UnknownHostException (may mean network down)
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@67 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
f397e6c117
commit
4eaabefb2c
|
@ -24,6 +24,7 @@ import javax.mail.internet.MimeUtility;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.net.HttpURLConnection;
|
import java.net.HttpURLConnection;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
import java.net.UnknownHostException;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
@ -191,6 +192,9 @@ public class ExchangeSession {
|
||||||
status + ", check configuration");
|
status + ", check configuration");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} catch (UnknownHostException exc) {
|
||||||
|
LOGGER.error("DavMail configuration exception: \n Unknown host " + exc.getMessage(), exc);
|
||||||
|
throw new IOException("DavMail configuration exception: \n Unknown host " + exc.getMessage(), exc);
|
||||||
} catch (Exception exc) {
|
} catch (Exception exc) {
|
||||||
LOGGER.error("DavMail configuration exception: \n" + exc.getMessage(), exc);
|
LOGGER.error("DavMail configuration exception: \n" + exc.getMessage(), exc);
|
||||||
throw new IOException("DavMail configuration exception: \n" + exc.getMessage(), exc);
|
throw new IOException("DavMail configuration exception: \n" + exc.getMessage(), exc);
|
||||||
|
|
Loading…
Reference in New Issue