本文整理汇总了Java中com.google.gwt.core.client.GWT.UncaughtExceptionHandler.onUncaughtException方法的典型用法代码示例。如果您正苦于以下问题:Java UncaughtExceptionHandler.onUncaughtException方法的具体用法?Java UncaughtExceptionHandler.onUncaughtException怎么用?Java UncaughtExceptionHandler.onUncaughtException使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.gwt.core.client.GWT.UncaughtExceptionHandler
的用法示例。
在下文中一共展示了UncaughtExceptionHandler.onUncaughtException方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onErrorImpl
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
/**
* Takes care of reporting exceptions to the console in hosted mode.
*
* @param listener the listener object to call back.
* @param port argument from the callback.
*/
private static void onErrorImpl(ErrorHandler errorHandler, ErrorEvent event) {
UncaughtExceptionHandler ueh = GWT.getUncaughtExceptionHandler();
if (ueh != null) {
try {
errorHandler.onError(event);
} catch (Exception ex) {
ueh.onUncaughtException(ex);
}
} else {
errorHandler.onError(event);
}
}
示例2: onMessageImpl
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
/**
* Takes care of reporting exceptions to the console in hosted mode.
*
* @param listener the listener object to call back.
* @param port argument from the callback.
*/
private static void onMessageImpl(MessageHandler messageHandler, MessageEvent event) {
UncaughtExceptionHandler ueh = GWT.getUncaughtExceptionHandler();
if (ueh != null) {
try {
messageHandler.onMessage(event);
} catch (Exception ex) {
ueh.onUncaughtException(ex);
}
} else {
messageHandler.onMessage(event);
}
}
示例3: fireOnEventAndCatch
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
private void fireOnEventAndCatch(UncaughtExceptionHandler handler) {
try {
onInit();
} catch (Throwable e) {
handler.onUncaughtException(e);
}
}
示例4: fireOnEventAndCatch
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
private void fireOnEventAndCatch(Slider slider, int newValue, int oldValue, Object eOpts,
UncaughtExceptionHandler handler) {
try {
onChange(slider, newValue, oldValue, eOpts);
} catch (Throwable e) {
handler.onUncaughtException(e);
}
}
示例5: fireOnEventAndCatch
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
private void fireOnEventAndCatch(Component comp, UncaughtExceptionHandler handler) {
try {
onAfterRender(comp);
} catch (Throwable e) {
handler.onUncaughtException(e);
}
}
示例6: fireOnEventAndCatch
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
private void fireOnEventAndCatch(Text<String> text, Object oldValue, Object newValue, Object eOpts,
UncaughtExceptionHandler handler) {
try {
onChange(text, oldValue, newValue, eOpts);
} catch (Throwable e) {
handler.onUncaughtException(e);
}
}
示例7: fireOnEventAndCatch
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
private void fireOnEventAndCatch(Spinner<Double> spinner, double value, String direction, Object eOpts,
UncaughtExceptionHandler handler) {
try {
onSpin(spinner, value, direction, eOpts);
} catch (Throwable e) {
handler.onUncaughtException(e);
}
}
示例8: fireOnEventAndCatch
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
private void fireOnEventAndCatch(Text<String> text, EventObject event, Object eOpts,
UncaughtExceptionHandler handler) {
try {
onKeyUp(text, event, eOpts);
} catch (Throwable e) {
handler.onUncaughtException(e);
}
}
示例9: fireOnEventAndCatch
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
private void fireOnEventAndCatch(DataView dataView, BaseModel record, Boolean supressed, Object eOpts,
UncaughtExceptionHandler handler) {
try {
onDoSelect(dataView, record, supressed, eOpts);
} catch (Throwable e) {
handler.onUncaughtException(e);
}
}
示例10: fireOnEventAndCatch
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
private void fireOnEventAndCatch(Button btn, EventObject event, UncaughtExceptionHandler handler) {
try {
onTap(btn, event);
} catch (Throwable e) {
handler.onUncaughtException(e);
}
}
示例11: fireOnEventAndCatch
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
private void fireOnEventAndCatch(NestedListDataView nestedList, ListDataView list, Element node,
JavaScriptObject selections, Object eOpts, UncaughtExceptionHandler handler) {
try {
onBeforeSelect(nestedList, list, node, selections, eOpts);
} catch (Throwable e) {
handler.onUncaughtException(e);
}
}
示例12: fireOnEventAndCatch
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
private void fireOnEventAndCatch(Component comp, UncaughtExceptionHandler handler) {
try {
onEnable(comp);
} catch (Throwable e) {
handler.onUncaughtException(e);
}
}
示例13: fireOnEventAndCatch
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
private void fireOnEventAndCatch(Mask mask, Object eventObject, Object eOpts, UncaughtExceptionHandler handler) {
try {
onTap(mask, eventObject, eOpts);
} catch (Throwable e) {
handler.onUncaughtException(e);
}
}
示例14: fireOnEventAndCatch
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
private void fireOnEventAndCatch(Component comp, UncaughtExceptionHandler handler) {
try {
onBeforeRender(comp);
} catch (Throwable e) {
handler.onUncaughtException(e);
}
}
示例15: fireOnEventAndCatch
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
private void fireOnEventAndCatch(NestedListDataView nestedList, Object listitem, Object eOpts,
UncaughtExceptionHandler handler) {
try {
onChange(nestedList, listitem, eOpts);
} catch (Throwable e) {
handler.onUncaughtException(e);
}
}