Changed exception of Vibrator::Stop for device op failed.
authorHokwon Song <hokwon.song@samsung.com>
Wed, 27 Mar 2013 02:26:54 +0000 (11:26 +0900)
committerHokwon Song <hokwon.song@samsung.com>
Wed, 27 Mar 2013 02:26:54 +0000 (11:26 +0900)
Change-Id: I973ea70a66df91b44cf161b489529095ad9737c9
Signed-off-by: Hokwon Song <hokwon.song@samsung.com>
src/system/FSys_VibratorImpl.cpp

index 5dfdba5..dffe91e 100644 (file)
@@ -168,7 +168,7 @@ _VibratorImpl::Stop(void)
        SysTryReturnResult(NID_SYS, __handle != null, E_FAILURE, "_VibratorImpl was not constructed.");
 
        int deviceResult = haptic_stop_all_effects(__handle);
-        SysTryReturnResult(NID_SYS, deviceResult == HAPTIC_ERROR_NONE,E_SYSTEM,
+        SysTryReturnResult(NID_SYS, deviceResult == HAPTIC_ERROR_NONE,E_DEVICE_FAILED,
                 "[E_SYSTEM] Vibration stop operation has failed. [result:%d]", deviceResult);
        SysLog(NID_SYS, "vibrator stopped handle = %d", __handle);
        __effectHandle = null;