WrtDeviceApis::CommonsJavaScript::JSDOMException::SECURITY_ERR },
{ "NETWORK_ERR",
WrtDeviceApis::CommonsJavaScript::JSDOMException::NETWORK_ERR },
- { "ABORT_ERR",
+ { "ABORT_ERR",
WrtDeviceApis::CommonsJavaScript::JSDOMException::ABORT_ERR },
{ "TIMEOUT_ERR",
WrtDeviceApis::CommonsJavaScript::JSDOMException::TIMEOUT_ERR },
{ "INVALID_VALUES_ERR",
WrtDeviceApis::CommonsJavaScript::JSDOMException::INVALID_VALUES_ERR },
- { "IO_ERR",
- WrtDeviceApis::CommonsJavaScript::JSDOMException::IO_ERR },
+ { "IO_ERR",
+ WrtDeviceApis::CommonsJavaScript::JSDOMException::IO_ERR },
{ "QUOTA_EXCEEDED_ERR",
WrtDeviceApis::CommonsJavaScript::JSDOMException::QUOTA_EXCEEDED_ERR }
};
namespace WrtDeviceApis {
namespace CommonsJavaScript {
-
JSClassRef JSDOMException::m_classRef = NULL;
JSClassDefinition JSDOMException::m_classInfo = {
void JSDOMException::initialize(JSContextRef /*context*/,
JSObjectRef /*object*/)
-{
-}
+{}
void JSDOMException::finalize(JSObjectRef object)
{
const size_t size = sizeof(PROPERTY_ERROR) / sizeof(PROPERTY_ERROR[0]);
for (size_t i = 0; i < size; ++i) {
if (JSStringIsEqualToUTF8CString(propertyName,
- PROPERTY_ERROR[i].name)) {
+ PROPERTY_ERROR[i].name))
+ {
return true;
}
}
if (JSStringIsEqualToUTF8CString(propertyName, PROPERTY_CODE)) {
return converter.toJSValueRef(privateObject->getObject()->getCode());
} else if (JSStringIsEqualToUTF8CString(propertyName,
- PROPERTY_MESSAGE)) {
+ PROPERTY_MESSAGE))
+ {
return converter.toJSValueRef(
privateObject->getObject()->getMessage());
}
- }
- catch (const Commons::ConversionException& ex) {
+ } catch (const Commons::ConversionException& ex) {
LogError("Exception: " << ex.GetMessage());
}
return converter.toJSValueRef(PROPERTY_ERROR[i].value);
}
}
- }
- catch (const Commons::ConversionException& ex) {
+ } catch (const Commons::ConversionException& ex) {
LogError("Exception: " << ex.GetMessage());
}
}
void JSDOMException::getPropertyNames(
- JSContextRef /*context*/,
- JSObjectRef /*object*/,
- JSPropertyNameAccumulatorRef accumulator)
+ JSContextRef /*context*/,
+ JSObjectRef /*object*/,
+ JSPropertyNameAccumulatorRef accumulator)
{
const size_t size = sizeof(PROPERTY_ERROR) / sizeof(PROPERTY_ERROR[0]);
for (size_t i = 0; i < size; ++i) {
{
return JSValueIsObjectOfClass(context, possibleInstance, getClassRef());
}
-
} // CommonsJavaScript
} // WrtDeviceApis