upload tizen1.0 source
[profile/ivi/wrt-plugins-tizen.git] / src / standards / Tizen / Bluetooth / JSBluetoothClassDeviceMajor.cpp
index a211af0..4811157 100644 (file)
@@ -154,7 +154,7 @@ JSValueRef JSBluetoothClassDeviceMajor::getProperty(JSContextRef context,
                
                if (priv == NULL)
                {
-                       Throw(WrtDeviceApis::Commons::InvalidArgumentException);
+                       Throw(WrtDeviceApis::Commons::ConversionException);
                }
                
                Converter converter(context);
@@ -168,6 +168,12 @@ JSValueRef JSBluetoothClassDeviceMajor::getProperty(JSContextRef context,
                }
                return converter.toJSValueRef(value);
        }
+       Catch (WrtDeviceApis::Commons::ConversionException) 
+       {
+               LogError("TypemismatchException");
+               return JSTizenExceptionFactory::postException(context, exception, 
+                       JSTizenException::TYPE_MISMATCH_ERROR, "type mismatch error");  
+       }       
        Catch (WrtDeviceApis::Commons::InvalidArgumentException) 
        {
                LogError("InvalidArgumentException");