当前位置: 首页>>代码示例>>Java>>正文


Java UncaughtExceptionHandler.onUncaughtException方法代码示例

本文整理汇总了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);
  }
}
 
开发者ID:eclipse,项目名称:che,代码行数:19,代码来源:AbstractWorker.java

示例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);
  }
}
 
开发者ID:eclipse,项目名称:che,代码行数:19,代码来源:MessagePort.java

示例3: fireOnEventAndCatch

import com.google.gwt.core.client.GWT.UncaughtExceptionHandler; //导入方法依赖的package包/类
private void fireOnEventAndCatch(UncaughtExceptionHandler handler) {
    try {
        onInit();
    } catch (Throwable e) {
        handler.onUncaughtException(e);
    }
}
 
开发者ID:ahome-it,项目名称:ahome-touch,代码行数:8,代码来源:InitHandler.java

示例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);
    }
}
 
开发者ID:paulvi,项目名称:touch4j,代码行数:9,代码来源:SliderChangeHandler.java

示例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);
  }
}
 
开发者ID:paulvi,项目名称:touch4j,代码行数:8,代码来源:AfterRenderHandler.java

示例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);
    }
}
 
开发者ID:paulvi,项目名称:touch4j,代码行数:9,代码来源:TextChangeHandler.java

示例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);
    }
}
 
开发者ID:paulvi,项目名称:touch4j,代码行数:9,代码来源:SpinnerSpinHandler.java

示例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);
    }
}
 
开发者ID:paulvi,项目名称:touch4j,代码行数:9,代码来源:TextKeyUpHandler.java

示例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);
    }
}
 
开发者ID:paulvi,项目名称:touch4j,代码行数:9,代码来源:DataViewDoSelectHandler.java

示例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);
  }
}
 
开发者ID:paulvi,项目名称:touch4j,代码行数:8,代码来源:TapHandler.java

示例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);
    }
}
 
开发者ID:paulvi,项目名称:touch4j,代码行数:9,代码来源:NestedListBeforeSelectHandler.java

示例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);
  }
}
 
开发者ID:paulvi,项目名称:touch4j,代码行数:8,代码来源:EnableHandler.java

示例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);
    }
}
 
开发者ID:paulvi,项目名称:touch4j,代码行数:8,代码来源:MaskTapHandler.java

示例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);
  }
}
 
开发者ID:paulvi,项目名称:touch4j,代码行数:8,代码来源:BeforeRenderHandler.java

示例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);
    }
}
 
开发者ID:paulvi,项目名称:touch4j,代码行数:9,代码来源:NestedListChangeHandler.java


注:本文中的com.google.gwt.core.client.GWT.UncaughtExceptionHandler.onUncaughtException方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。