[Yanel-commits] rev 57212 - public/yanel/contributions/realms/konakart-yanel-realm/res-types/category/src/java/org/wyona/yanel/resources/konakart/category

michi at wyona.com michi at wyona.com
Mon Mar 7 21:59:26 CET 2011


Author: michi
Date: 2011-03-07 21:59:25 +0100 (Mon, 07 Mar 2011)
New Revision: 57212

Modified:
   public/yanel/contributions/realms/konakart-yanel-realm/res-types/category/src/java/org/wyona/yanel/resources/konakart/category/KonakartCategorySOAPInfResource.java
Log:
exists method used by get view

Modified: public/yanel/contributions/realms/konakart-yanel-realm/res-types/category/src/java/org/wyona/yanel/resources/konakart/category/KonakartCategorySOAPInfResource.java
===================================================================
--- public/yanel/contributions/realms/konakart-yanel-realm/res-types/category/src/java/org/wyona/yanel/resources/konakart/category/KonakartCategorySOAPInfResource.java	2011-03-07 20:58:33 UTC (rev 57211)
+++ public/yanel/contributions/realms/konakart-yanel-realm/res-types/category/src/java/org/wyona/yanel/resources/konakart/category/KonakartCategorySOAPInfResource.java	2011-03-07 20:59:25 UTC (rev 57212)
@@ -63,6 +63,9 @@
             // Konakart is offline
             throw new KonakartOfflineException("Konakart is offline.");
         }
+        if (!exists()) {
+            throw new org.wyona.yanel.core.ResourceNotFoundException("No such product category!");
+        }
 
         // All is well
         return getXMLView(viewId, getContentXML(viewId));



More information about the Yanel-commits mailing list