[IOT-1556] Changes in cloud according to the stateless request/response model (group...
[platform/upstream/iotivity.git] / cloud / stack / src / main / java / org / iotivity / cloud / base / resource / Resource.java
index 719070e..e09a314 100644 (file)
@@ -99,7 +99,7 @@ public class Resource implements IRequestEventHandler {
         for (String property : propertyList) {
             if (!queryData.containsKey(property))
                 throw new PreconditionFailedException(
-                        property + " property is not include");
+                        "query does not contatin " + property + " property");
             if (queryData.get(property) == null)
                 throw new PreconditionFailedException(
                         property + " param is null");
@@ -121,10 +121,10 @@ public class Resource implements IRequestEventHandler {
         for (String property : propertyList) {
             if (!payloadData.containsKey(property))
                 throw new PreconditionFailedException(
-                        property + " property is not include");
+                        "payload does not contain" + property + " property");
             if (payloadData.get(property) == null)
                 throw new PreconditionFailedException(
-                        property + " param is null");
+                        property + " param is null in the payload");
         }
         return true;
     }