svnno****@sourc*****
svnno****@sourc*****
2008年 1月 15日 (火) 07:04:37 JST
Revision: 779 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=779 Author: shinsuke Date: 2008-01-15 07:04:36 +0900 (Tue, 15 Jan 2008) Log Message: ----------- catch exception. Modified Paths: -------------- pal-admin/branches/pal-admin-0.4/src/main/java/jp/sf/pal/admin/logic/SiteEditorLogic.java -------------- next part -------------- Modified: pal-admin/branches/pal-admin-0.4/src/main/java/jp/sf/pal/admin/logic/SiteEditorLogic.java =================================================================== --- pal-admin/branches/pal-admin-0.4/src/main/java/jp/sf/pal/admin/logic/SiteEditorLogic.java 2008-01-14 22:03:04 UTC (rev 778) +++ pal-admin/branches/pal-admin-0.4/src/main/java/jp/sf/pal/admin/logic/SiteEditorLogic.java 2008-01-14 22:04:36 UTC (rev 779) @@ -295,6 +295,10 @@ logger.error("Could not access a folder: " + path, e); throw new CommonException("could.not.access.folder", "Could not access a folder: " + path, e); + } catch (Exception e) { + logger.error("Could not access a folder: " + path, e); + throw new CommonException("could.not.access.folder", + "Could not access a folder: " + path, e); } } @@ -633,6 +637,10 @@ logger.error("Could not access a page security. ", e); throw new CommonException("could.not.access.page.security", "Could not access a page security. ", e); + } catch (Exception e) { + logger.error("Could not access a page security. ", e); + throw new CommonException("could.not.access.page.security", + "Could not access a page security. ", e); } return list; } @@ -906,6 +914,10 @@ logger.error("Could not access a page: " + path, e); throw new CommonException("could.not.access.page", "Could not access a page: " + path, e); + } catch (Exception e) { + logger.error("Could not access a page: " + path, e); + throw new CommonException("could.not.access.page", + "Could not access a page: " + path, e); } } @@ -933,6 +945,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.page", "Could not update a page: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.update.page", + "Could not update a page: " + path, e); } } @@ -957,6 +972,9 @@ } catch (NodeException e) { throw new CommonException("could.not.delete.page", "Could not delete a page: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.delete.page", + "Could not delete a page: " + path, e); } return parentPath; } @@ -995,6 +1013,9 @@ } catch (NodeException e) { throw new CommonException("could.not.add.page", "Could not add a page: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.add.page", + "Could not add a page: " + path, e); } List<String> orderList = folder.getDocumentOrder(); @@ -1012,6 +1033,9 @@ } catch (NodeException e) { throw new CommonException("could.not.change.page.order", "Could not change a page order: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.change.page.order", + "Could not change a page order: " + path, e); } } } @@ -1076,6 +1100,10 @@ logger.error("Could not access a folder: " + path, e); throw new CommonException("could.not.access.folder", "Could not access a folder: " + path, e); + } catch (Exception e) { + logger.error("Could not access a folder: " + path, e); + throw new CommonException("could.not.access.folder", + "Could not access a folder: " + path, e); } } @@ -1103,6 +1131,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.folder", "Could not update a folder: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.update.folder", + "Could not update a folder: " + path, e); } } @@ -1131,6 +1162,9 @@ } catch (NodeException e) { throw new CommonException("could.not.delete.folder", "Could not update a folder: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.delete.folder", + "Could not update a folder: " + path, e); } return parentPath; @@ -1194,6 +1228,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.document.order", "Could not update a folder: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.update.document.order", + "Could not update a folder: " + path, e); } } @@ -1239,6 +1276,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.document.order", "Could not update a folder: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.update.document.order", + "Could not update a folder: " + path, e); } } @@ -1274,6 +1314,9 @@ } catch (NodeException e) { throw new CommonException("could.not.add.document.order", "Could not update a folder: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.add.document.order", + "Could not update a folder: " + path, e); } } @@ -1308,6 +1351,9 @@ } catch (NodeException e) { throw new CommonException("could.not.add.document.order", "Could not update a folder: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.add.document.order", + "Could not update a folder: " + path, e); } } @@ -1353,6 +1399,9 @@ } catch (NodeException e) { throw new CommonException("could.not.add.metadata", "Could not update a folder: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.add.metadata", + "Could not update a folder: " + path, e); } } @@ -1401,6 +1450,9 @@ } catch (NodeException e) { throw new CommonException("could.not.delete.metadata", "Could not update a folder: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.delete.metadata", + "Could not update a folder: " + path, e); } } @@ -1446,6 +1498,9 @@ } catch (NodeException e) { throw new CommonException("could.not.add.metadata", "Could not update a page: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.add.metadata", + "Could not update a page: " + path, e); } } @@ -1494,6 +1549,9 @@ } catch (NodeException e) { throw new CommonException("could.not.delete.metadata", "Could not update a page: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.delete.metadata", + "Could not update a page: " + path, e); } } @@ -1529,6 +1587,9 @@ } catch (NodeException e) { throw new CommonException("could.not.add.folder", "Could not add a folder: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.add.folder", + "Could not add a folder: " + path, e); } // change a folder order @@ -1547,6 +1608,9 @@ } catch (NodeException e) { throw new CommonException("could.not.change.folder.order", "Could not change a folder order: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.change.folder.order", + "Could not change a folder order: " + path, e); } } } @@ -1575,6 +1639,9 @@ } catch (NodeException e) { throw new CommonException("could.not.add.default.page", "Could not add a default page: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.add.default.page", + "Could not add a default page: " + path, e); } orderList = child.getDocumentOrder(); @@ -1594,6 +1661,10 @@ throw new CommonException( "could.not.change.default.page.order", "Could not change a default page order: " + path, e); + } catch (Exception e) { + throw new CommonException( + "could.not.change.default.page.order", + "Could not change a default page order: " + path, e); } } } @@ -1647,6 +1718,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.layout", "Could not update a layout: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.update.layout", + "Could not update a layout: " + path, e); } try { @@ -1681,6 +1755,11 @@ "updated.layout.but.could.not.update.cache", "Update a layout configuration, but could not update a cache.: " + path, e); + } catch (Exception e) { + throw new CommonException( + "updated.layout.but.could.not.update.cache", + "Update a layout configuration, but could not update a cache.: " + + path, e); } } @@ -1716,6 +1795,9 @@ } catch (NodeException e) { throw new CommonException("could.not.delete.layout", "Could not delete a layout: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.delete.layout", + "Could not delete a layout: " + path, e); } return p; } @@ -1761,6 +1843,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.portlet", "Could not update a page: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.update.portlet", + "Could not update a page: " + path, e); } try { @@ -1795,6 +1880,11 @@ "updated.portlet.but.could.not.update.cache", "Update a portlet configuration, but could not update a cache.: " + path, e); + } catch (Exception e) { + throw new CommonException( + "updated.portlet.but.could.not.update.cache", + "Update a portlet configuration, but could not update a cache.: " + + path, e); } } @@ -1824,6 +1914,9 @@ } catch (NodeException e) { throw new CommonException("could.not.delete.portlet", "Could not delete a portlet: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.delete.portlet", + "Could not delete a portlet: " + path, e); } return p; } @@ -1855,6 +1948,9 @@ } catch (NodeException e) { throw new CommonException("could.not.add.layout", "Could not update a page: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.add.layout", + "Could not update a page: " + path, e); } } @@ -1885,6 +1981,9 @@ } catch (NodeException e) { throw new CommonException("could.not.add.portlet", "Could not update a page: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.add.portlet", + "Could not update a page: " + path, e); } } @@ -2052,6 +2151,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.page", "Could not update a page: " + page.getPath(), e); + } catch (Exception e) { + throw new CommonException("could.not.update.page", + "Could not update a page: " + page.getPath(), e); } } @@ -2072,6 +2174,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.folder", "Could not update a folder: " + folder.getPath(), e); + } catch (Exception e) { + throw new CommonException("could.not.update.folder", + "Could not update a folder: " + folder.getPath(), e); } } @@ -2120,6 +2225,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.page", "Could not update a page: " + page.getPath(), e); + } catch (Exception e) { + throw new CommonException("could.not.update.page", + "Could not update a page: " + page.getPath(), e); } } @@ -2142,6 +2250,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.folder", "Could not update a folder: " + folder.getPath(), e); + } catch (Exception e) { + throw new CommonException("could.not.update.folder", + "Could not update a folder: " + folder.getPath(), e); } } @@ -2190,6 +2301,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.page", "Could not update a page: " + page.getPath(), e); + } catch (Exception e) { + throw new CommonException("could.not.update.page", + "Could not update a page: " + page.getPath(), e); } } @@ -2212,6 +2326,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.folder", "Could not update a folder: " + folder.getPath(), e); + } catch (Exception e) { + throw new CommonException("could.not.update.folder", + "Could not update a folder: " + folder.getPath(), e); } } @@ -2259,6 +2376,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.page", "Could not update a page: " + page.getPath(), e); + } catch (Exception e) { + throw new CommonException("could.not.update.page", + "Could not update a page: " + page.getPath(), e); } } @@ -2280,6 +2400,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.folder", "Could not update a folder: " + folder.getPath(), e); + } catch (Exception e) { + throw new CommonException("could.not.update.folder", + "Could not update a folder: " + folder.getPath(), e); } } @@ -2352,6 +2475,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.layout", "Could not update a layout: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.update.layout", + "Could not update a layout: " + path, e); } } @@ -2386,6 +2512,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.layout", "Could not update a layout: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.update.layout", + "Could not update a layout: " + path, e); } } @@ -2420,6 +2549,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.portlet", "Could not update a portlet: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.update.portlet", + "Could not update a portlet: " + path, e); } } @@ -2454,6 +2586,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.portlet", "Could not update a portlet: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.update.portlet", + "Could not update a portlet: " + path, e); } } @@ -2500,6 +2635,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.layout", "Could not update a layout: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.update.layout", + "Could not update a layout: " + path, e); } } @@ -2541,6 +2679,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.layout", "Could not update a layout: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.update.layout", + "Could not update a layout: " + path, e); } } @@ -2587,6 +2728,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.portlet", "Could not update a portlet: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.update.portlet", + "Could not update a portlet: " + path, e); } } @@ -2628,6 +2772,9 @@ } catch (NodeException e) { throw new CommonException("could.not.update.portlet", "Could not update a portlet: " + path, e); + } catch (Exception e) { + throw new CommonException("could.not.update.portlet", + "Could not update a portlet: " + path, e); } }