#include "ContactConverter.h"
#include "JSContactEmailAddressTypeArray.h"
#include "JSContactEmailAddress.h"
+#include <Logger.h>
#define CONTACT_CLASS_NAME "EmailAddress"
JSContactEmailAddressPriv *priv = new JSContactEmailAddressPriv(context, emailAddress);
JSObjectRef jsObjectRef = JSObjectMake(context, getClassRef(), static_cast<void*>(priv));
if (NULL == jsObjectRef) {
- LogError("object creation error");
+ LoggerE("object creation error");
return NULL;
}
return jsObjectRef;
const JSValueRef arguments[],
JSValueRef* exception)
{
- LogDebug("entered");
+ LoggerD("entered");
JSContactEmailAddressPriv *priv = static_cast<JSContactEmailAddressPriv*>(JSObjectGetPrivate(constructor));
if (!priv) {
Try {
jsobject = createJSObject(gContext, contactEmailAddress);
} Catch(Exception) {
- LogError("Argument type mismatch : " << _rethrown_exception.GetMessage());
+ LoggerE("Argument type mismatch : " << _rethrown_exception.GetMessage());
*exception = JSTizenExceptionFactory::makeErrorObject(context, JSTizenException::TYPE_MISMATCH_ERROR, "Wrong arguments");
return NULL;
}
}
Catch(WrtDeviceApis::Commons::Exception)
{
- LogWarning("trying to get incorrect value");
+ LoggerW("trying to get incorrect value");
}
return JSValueMakeUndefined(context);
}
}
Catch(WrtDeviceApis::Commons::Exception)
{
- LogWarning("trying to set incorrect value");
+ LoggerW("trying to set incorrect value");
JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type mismatch");
}
return true;
}
Catch(WrtDeviceApis::Commons::Exception)
{
- LogWarning("trying to get incorrect value");
+ LoggerW("trying to get incorrect value");
}
return JSValueMakeUndefined(context);
}
}
Catch(WrtDeviceApis::Commons::Exception)
{
- LogWarning("trying to set incorrect value");
+ LoggerW("trying to set incorrect value");
JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type mismatch");
}
return true;
}
Catch(WrtDeviceApis::Commons::Exception)
{
- LogWarning("trying to get incorrect value");
+ LoggerW("trying to get incorrect value");
}
return JSValueMakeUndefined(context);
}
}
Catch(WrtDeviceApis::Commons::Exception)
{
- LogWarning("trying to set incorrect value");
+ LoggerW("trying to set incorrect value");
JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type mismatch");
}
return true;