From 34d927f5063c6bfb578818ec31296f9c28376989 Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 16 Aug 2010 22:07:59 +0000 Subject: [PATCH] Improve error handling git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1348 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ews/EwsExchangeSession.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/java/davmail/exchange/ews/EwsExchangeSession.java b/src/java/davmail/exchange/ews/EwsExchangeSession.java index 7f6a8c8e..2fe06d47 100644 --- a/src/java/davmail/exchange/ews/EwsExchangeSession.java +++ b/src/java/davmail/exchange/ews/EwsExchangeSession.java @@ -608,6 +608,8 @@ public class EwsExchangeSession extends ExchangeSession { if (item != null) { folder = buildFolder(folderId.mailbox, item); folder.folderPath = folderPath; + } else { + throw new HttpNotFoundException("Folder "+folderPath+" not found"); } return folder; }