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

michi at wyona.com michi at wyona.com
Mon Mar 7 22:04:27 CET 2011


Author: michi
Date: 2011-03-07 22:04:27 +0100 (Mon, 07 Mar 2011)
New Revision: 57213

Modified:
   public/yanel/contributions/realms/konakart-yanel-realm/res-types/product/src/java/org/wyona/yanel/resources/konakart/product/KonakartProductSOAPInfResource.java
Log:
check if product exists

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



More information about the Yanel-commits mailing list