summaryrefslogtreecommitdiff
path: root/src/standards/Tizen/Mediacontent/JSImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/standards/Tizen/Mediacontent/JSImage.cpp')
-rwxr-xr-xsrc/standards/Tizen/Mediacontent/JSImage.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/standards/Tizen/Mediacontent/JSImage.cpp b/src/standards/Tizen/Mediacontent/JSImage.cpp
index 3f00acf..a1813fc 100755
--- a/src/standards/Tizen/Mediacontent/JSImage.cpp
+++ b/src/standards/Tizen/Mediacontent/JSImage.cpp
@@ -21,6 +21,11 @@
#include <CommonsJavaScript/JSUtils.h>
#include <CommonsJavaScript/JSDOMExceptionFactory.h>
#include <Tizen/Tizen/JSSimpleCoordinates.h>
+
+#include <Tizen/Common/JSTizenExceptionFactory.h>
+#include <Tizen/Common/JSTizenException.h>
+#include <Tizen/Common/SecurityExceptions.h>
+
#include "JSMediacontent.h"
#include "JSImage.h"
@@ -32,6 +37,8 @@
#define TIZEN_MEDIACONTENT_IMAGE_ORIENTATION "orientation"
using namespace TizenApis::Tizen1_0::Tizen;
+using namespace TizenApis::Commons;
+using namespace WrtDeviceApis::Commons;
namespace TizenApis {
namespace Tizen1_0 {
@@ -242,6 +249,7 @@ bool JSImage::setPropertyOrientation(
Catch(Exception)
{
LogWarning("trying to get incorrect value");
+ return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR);
}
return false;
@@ -272,6 +280,7 @@ bool JSImage::setPropertyGeolocation(
Catch(Exception)
{
LogWarning("trying to get incorrect value");
+ TizenApis::Commons::JSTizenExceptionFactory::postException(context, exception, TizenApis::Commons::JSTizenException::TYPE_MISMATCH_ERROR);
}
return false;