diff test/XMLTest.java @ 386:bba62c4ac323

sync-option
author one@firefly.cr.ie.u-ryukyu.ac.jp
date Mon, 10 Nov 2008 22:19:34 +0900
parents 4b87f89b3afd
children 6f356d160e58
line wrap: on
line diff
--- a/test/XMLTest.java	Mon Nov 10 22:18:14 2008 +0900
+++ b/test/XMLTest.java	Mon Nov 10 22:19:34 2008 +0900
@@ -1,5 +1,9 @@
 package test;
 
+import java.io.IOException;
+
+import org.xml.sax.SAXException;
+
 import rep.Session;
 import rep.SessionList;
 import rep.handler.Editor;
@@ -41,9 +45,12 @@
 		SessionXMLDecoder decoder = new SessionXMLDecoder();
 		try {
 			sessionlist2 = decoder.decode(t1);
-		} catch (Exception e) {
+		} catch (SAXException e) {
+			return;
+		} catch (IOException e) {
 			return;
 		}
+
 		
 		/*** SessionList から XML へ ***/
 		//SessionXMLEncoder encoder2 = new SessionXMLEncoder(sessionlist2.getList());