Examples of ExceptionData


Examples of com.google.gwt.debugpanel.common.ExceptionData

    final StatisticsEvent event = mockery.mock(StatisticsEvent.class);
    mockery.checking(new Expectations() {{
      oneOf(event).getSubSystem(); will(returnValue("error"));
      oneOf(event).getEventGroupKey(); will(returnValue("error"));
      oneOf(event).getExtraParameter("type"); will(returnValue("error"));
      oneOf(event).getExtraParameter("error"); will(returnValue(new ExceptionData() {}));
      oneOf(event).getModuleName(); will(returnValue("module"));
      oneOf(event).getMillis(); will(returnValue(123.0));
    }});

    model.onStatisticsEvent(event);
View Full Code Here

Examples of com.google.gwt.debugpanel.common.ExceptionData

    assertEquals(1, table.getRowCount());
  }

  public void testConstruction() {
    double start = Duration.currentTimeMillis();
    ExceptionData ex = data(new Throwable());
    model.add(event(start + 0, ex));
    model.add(event(start + 1, ex));
    model.add(event(start + 2, ex));
    view = new TestingGwtExceptionView(model);
    table = (FlexTable) view.getWidget();
View Full Code Here

Examples of com.google.gwt.debugpanel.common.ExceptionData

    assertRow(2, start + 0, ex);
  }

  public void testData() {
    double start = Duration.currentTimeMillis();
    ExceptionData ex0 = data(new Throwable());
    ExceptionData ex1 = data(new Throwable("message"));
    ExceptionData ex2 = data(new Throwable("message", new Throwable()));
    model.add(event(start + 0, ex0));
    model.add(event(start + 1, ex1));
    model.add(event(start + 2, ex2));
    view = new TestingGwtExceptionView(model);
    table = (FlexTable) view.getWidget();
View Full Code Here

Examples of com.google.gwt.debugpanel.common.ExceptionData

    assertRow(2, start + 0, ex0);
  }

  public void testInsertion() {
    double start = Duration.currentTimeMillis();
    ExceptionData ex = data(new Throwable());
    model.add(event(start + 0, ex));
    model.add(event(start + 1, ex));
    model.add(event(start + 2, ex));

    assertHeader();
View Full Code Here

Examples of com.google.gwt.debugpanel.common.ExceptionData

    assertRow(2, start + 0, ex);
  }

  public void testRemoval() {
    double start = Duration.currentTimeMillis();
    ExceptionData ex = data(new Throwable());
    model.add(event(start + 0, ex));
    model.add(event(start + 1, ex));
    model.add(event(start + 2, ex));
    model.removeExceptionEvent(1);
View Full Code Here

Examples of org.chromium.sdk.ExceptionData

  private static StackFrameBase[] wrapStackFrames(JavascriptThread.SuspendedState threadState) {
    DebugContext debugContext = threadState.getDebugContext();
    List<? extends CallFrame> jsFrames = debugContext.getCallFrames();
    List<StackFrameBase> result = new ArrayList<StackFrameBase>(jsFrames.size() + 1);

    ExceptionData exceptionData = debugContext.getExceptionData();
    if (exceptionData != null) {
      // Add fake 'throw exception' frame.
      EvaluateContext evaluateContext =
          new EvaluateContext(debugContext.getGlobalEvaluateContext(), threadState);
      result.add(new ExceptionStackFrame(evaluateContext, exceptionData));
View Full Code Here

Examples of org.chromium.sdk.ExceptionData

      ContextBuilder.ExpectingBacktraceStep step2;
      if (V8Protocol.EVENT_BREAK.key.equals(event)) {
        Collection<Breakpoint> breakpointsHit = getBreakpointsHit(eventMessage, breakEventBody);
        step2 = step1.setContextState(breakpointsHit, null);
      } else if (V8Protocol.EVENT_EXCEPTION.key.equals(event)) {
        ExceptionData exception = createException(eventMessage, breakEventBody,
            internalContext);
        step2 = step1.setContextState(Collections.<Breakpoint> emptySet(), exception);
      } else {
        contextBuilder.buildSequenceFailure();
        throw new RuntimeException();
View Full Code Here

Examples of org.chromium.sdk.ExceptionData

  private static StackFrameBase[] wrapStackFrames(JavascriptThread.SuspendedState threadState) {
    DebugContext debugContext = threadState.getDebugContext();
    List<? extends CallFrame> jsFrames = debugContext.getCallFrames();
    List<StackFrameBase> result = new ArrayList<StackFrameBase>(jsFrames.size() + 1);

    ExceptionData exceptionData = debugContext.getExceptionData();
    if (exceptionData != null) {
      // Add fake 'throw exception' frame.
      EvaluateContext evaluateContext =
          new EvaluateContext(debugContext.getGlobalEvaluateContext(), threadState);
      result.add(new ExceptionStackFrame(evaluateContext, exceptionData));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.