Name: wrt-plugins-tizen
Summary: JavaScript plugins for WebRuntime
Version: 0.4.22
-Release: 0
+Release: 1
Group: Development/Libraries
License: Apache License, Version 2.0
Source0: %{name}-%{version}.tar.gz
mName = "InvalidAccessError";
}
+QuotaExceededException::QuotaExceededException(const char* message):BasePlatformException(JSWebAPIException::QUOTA_EXCEEDED_ERR,"QuotaExceededError", message){
+}
+QuotaExceededException::QuotaExceededException(JSContextRef ctx, JSValueRef exception):BasePlatformException(ctx,exception){
+ mCode = JSWebAPIException::QUOTA_EXCEEDED_ERR;
+ mName = "QuotaExceededError";
+}
+
InvalidAccessException(JSContextRef ctx, JSValueRef exception);
};
+class QuotaExceededException : public BasePlatformException{
+public:
+ QuotaExceededException(const char* message);
+ QuotaExceededException(JSContextRef ctx, JSValueRef exception);
+};
if (tmpStr)
{
newMedia->setDisplayName(tmpStr);
- newMedia->setTitle(tmpStr);
LogDebug("Display Name : " << tmpStr);
free(tmpStr);
tmpStr = NULL;
if (tmpStr)
{
newMedia->setDescription(tmpStr);
- LogDebug("Desc : " << tmpStr);
+ LogDebug("Description : " << tmpStr);
free(tmpStr);
tmpStr = NULL;
}
tmpStr = NULL;
}
}
+ if ( MEDIA_CONTENT_ERROR_NONE == image_meta_get_title(img, &tmpStr) )
+ {
+ if( tmpStr )
+ {
+ newImage->setTitle(tmpStr);
+ LogDebug(" Image Title: " << tmpStr);
+ free(tmpStr);
+ tmpStr = NULL;
+ }
+ }
if ( MEDIA_CONTENT_ERROR_NONE == image_meta_get_width(img, &tmpInt) )
{
LogDebug("Track Number type is wrong. (track number:" << tmpStr << ")");
trackNum = 0;
}
-
newAudio->setAudioTrackNum(trackNum);
free(tmpStr);
tmpStr = NULL;
if ( MEDIA_CONTENT_ERROR_NONE == media_info_get_size(info, &tmpLongLong) )
{
- LogDebug("size");
newAudio->setAudioSize(tmpLongLong);
LogDebug("Audio Size: " << tmpLongLong);
}
if ( MEDIA_CONTENT_ERROR_NONE == audio_meta_get_bit_rate(audio, &tmpInt) )
{
- LogDebug("bitrate");
newAudio->setAudioBitrate(tmpInt);
LogDebug("Audio Bitrate: " << tmpInt);
}
if ( MEDIA_CONTENT_ERROR_NONE == audio_meta_get_genre(audio, &tmpStr) )
{
- LogDebug("gener");
if (tmpStr)
{
std::vector<std::string> genres = String::split(tmpStr, TAG_DELIMETER);
{
eFolder->setResult(true);
}
-
-
LogDebug("end");
}
break;
case ExceptionCodes::OutOfRangeException:
return JSWebAPIException::throwException(context, exception,
- UnknownException("The size of message has exceeded the maximum limit."));
+ QuotaExceededException("The size of message has exceeded the maximum limit."));
break;
default:
return JSWebAPIException::throwException(context, exception,
event->setExceptionCode(ExceptionCodes::NotFoundException);
event->setResult(false);
}
+ Catch(OutOfRangeException)
+ {
+ LogError("Error [OutOfRange] : " << _rethrown_exception.GetMessage());
+ event->setExceptionCode(ExceptionCodes::OutOfRangeException);
+ event->setResult(false);
+ }
Catch(PlatformException)
{
LogError("Error [PlatformException] : " << _rethrown_exception.GetMessage());