Update change log and spec for wrt-plugins-tizen_0.4.27
[framework/web/wrt-plugins-tizen.git] / src / MessagePort / JSMessagePortManager.cpp
index 229a6e7..3301de8 100644 (file)
@@ -531,6 +531,11 @@ JSValueRef JSMessagePortManager::requestTrustedRemoteMessagePort(JSContextRef co
                        return JSWebAPIException::throwException(context, exception,
                                        NotFoundException(oss.str().c_str()));
                        break;
+               case ExceptionCodes::PlatformWrongStateException:
+                       oss << "Have no permission to access app '" << appId << "'";
+                       return JSWebAPIException::throwException(context, exception,
+                                       InvalidAccessException(oss.str().c_str()));
+                       break;
                case ExceptionCodes::PlatformException:
                        return JSWebAPIException::throwException(context, exception,
                                        UnknownException("The method cannot proceed due to a severe system error."));