namespace WrtDeviceApis {
namespace CommonsJavaScript {
-
#define DECLARE_JS_EXCEPTION_FACTORY(Class) static JSDOMExceptionFactory Class
class JSDOMExceptionFactory : public DPL::Noncopyable
* JSValueRef* exception)
* {
* ...
- * return JSExceptionFactory::InvalidArgumentException.make(context, exception);
+ * return JSExceptionFactory::InvalidArgumentException.make(context,
+ * exception);
* ...
* }
* @endcode
*/
JSValueRef make(JSContextRef context,
- JSValueRef* exception,
- const std::string& message = std::string());
+ JSValueRef* exception,
+ const std::string& message = std::string());
/**
* Creates exception object.
* @param context JS context of the exception.
* @return JS exception object.
* @code
- * JSObjectRef jsError = JSExceptionFactory::InvalidArgumentException.make(context);
+ * JSObjectRef jsError =
+ * JSExceptionFactory::InvalidArgumentException.make(context);
* @endcode
*/
JSObjectRef make(JSContextRef context,
- const std::string& message = std::string());
+ const std::string& message = std::string());
private:
int m_code;
};
-
} // CommonsJavaScript
} // WrtDeviceApis