Update change log and spec for wrt-plugins-tizen_0.2.84
[framework/web/wrt-plugins-tizen.git] / src / standards / Tizen / Calendar / CalendarResponseDispatcher.cpp
index 7b638fa..2413666 100755 (executable)
@@ -233,8 +233,10 @@ void CalendarResponseDispatcher::OnAnswerReceived(const IEventExpandEventRecurre
             return;
         } else {
             JSValueRef errorObject;
-            if (event->getExceptionCode() ==
-                ExceptionCodes::NotFoundException) {
+            if (event->getExceptionCode()==ExceptionCodes::InvalidArgumentException) {
+                errorObject = TizenApis::Commons::JSTizenExceptionFactory::makeErrorObject(
+                        cbm->getContext(), TizenApis::Commons::JSTizenException::INVALID_VALUES_ERROR);
+            } else if (event->getExceptionCode()==ExceptionCodes::NotFoundException) {
                 errorObject = TizenApis::Commons::JSTizenExceptionFactory::makeErrorObject(
                         cbm->getContext(), TizenApis::Commons::JSTizenException::NOT_FOUND_ERROR);
             } else {