Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.DebugException


    if (frame.getReferenceType() instanceof IJavaInterfaceType) {
      IStatus status = new Status(IStatus.ERROR,
          JDIDebugModel.getPluginIdentifier(),
          DebugException.REQUEST_FAILED,
          EvaluationEngineMessages.ASTEvaluationEngine_0, null);
      throw new DebugException(status);
    }
  }
View Full Code Here


      }
      thread.queueRunnable(new EvalRunnable(
          (InstructionSequence) expression, thread, context,
          listener, evaluationDetail, hitBreakpoints));
    } else {
      throw new DebugException(
          new Status(
              IStatus.ERROR,
              JDIDebugPlugin.getUniqueIdentifier(),
              IStatus.OK,
              EvaluationEngineMessages.ASTEvaluationEngine_AST_evaluation_engine_cannot_evaluate_expression,
View Full Code Here

          JDIDebugOptions.trace(buf.toString());
        }
        if (exception instanceof DebugException) {
          result.setException((DebugException) exception);
        } else {
          result.setException(new DebugException(exception
              .getStatus()));
        }
      } else {
        if (value != null) {
          result.setValue(value);
View Full Code Here

  /**
   * @see org.eclipse.debug.core.model.IValueModification#setValue(String)
   */
  public void setValue(String expression) throws DebugException {
    throw new DebugException(
        new Status(
            IStatus.ERROR,
            JDIDebugModel.getPluginIdentifier(),
            DebugException.NOT_SUPPORTED,
            EvaluationEngineMessages.InterpreterVariable_setValue_String__not_supported_for_interpreter_variable_1,
View Full Code Here

  /**
   * @see org.eclipse.debug.core.model.IValueModification#verifyValue(IValue)
   */
  public boolean verifyValue(IValue value) throws DebugException {
    throw new DebugException(
        new Status(
            IStatus.ERROR,
            JDIDebugModel.getPluginIdentifier(),
            DebugException.NOT_SUPPORTED,
            EvaluationEngineMessages.InterpreterVariable_verifyValue_IValue__not_supported_for_interpreter_variable_2,
View Full Code Here

  /**
   * @see org.eclipse.debug.core.model.IValueModification#verifyValue(String)
   */
  public boolean verifyValue(String expression) throws DebugException {
    throw new DebugException(
        new Status(
            IStatus.ERROR,
            JDIDebugModel.getPluginIdentifier(),
            DebugException.NOT_SUPPORTED,
            EvaluationEngineMessages.InterpreterVariable_verifyValue_String__not_supported_for_interpreter_variable_3,
View Full Code Here

      for (IJavaVariable local : locals) {
        IJavaVariable field = object.getField(
            LOCAL_VAR_PREFIX + local.getName(), false);
        // internal error if field is not found
        if (field == null) {
          throw new DebugException(
              new Status(
                  IStatus.ERROR,
                  JDIDebugModel.getPluginIdentifier(),
                  DebugException.REQUEST_FAILED,
                  EvaluationMessages.LocalEvaluationEngine_Evaluation_failed___unable_to_initialize_local_variables__4,
                  null));
        }
        field.setValue(local.getValue());
      }
    }
    if (thisObject != null) {
      IJavaVariable field = object.getField(DELEGATE_THIS, false);
      // internal error if field is not found
      if (field == null) {
        throw new DebugException(
            new Status(
                IStatus.ERROR,
                JDIDebugModel.getPluginIdentifier(),
                DebugException.REQUEST_FAILED,
                EvaluationMessages.LocalEvaluationEngine_Evaluation_failed___unable_to_initialize___this___context__5,
View Full Code Here

      for (IJavaVariable local : locals) {
        IJavaVariable field = object.getField(
            LOCAL_VAR_PREFIX + local.getName(), false);
        // internal error if field is not found
        if (field == null) {
          throw new DebugException(
              new Status(
                  IStatus.ERROR,
                  JDIDebugModel.getPluginIdentifier(),
                  DebugException.REQUEST_FAILED,
                  EvaluationMessages.LocalEvaluationEngine_Evaluation_failed___unable_to_initialize_local_variables__6,
View Full Code Here

                .evaluateCodeSnippet(
                    LocalEvaluationEngine.this.getSnippet(),
                    LocalEvaluationEngine.this, null);
          } catch (JavaModelException e) {
            LocalEvaluationEngine.this.getResult().setException(
                new DebugException(e.getStatus()));
          } finally {
            LocalEvaluationEngine.this.evaluationComplete();
          }
        }
      };
View Full Code Here

                        .getLocalVariableModifiers(),
                    receivingType, isStatic, isConstructor,
                    LocalEvaluationEngine.this, null);
          } catch (JavaModelException e) {
            LocalEvaluationEngine.this.getResult().setException(
                new DebugException(e.getStatus()));
          } finally {
            LocalEvaluationEngine.this.evaluationComplete();
          }
        }
      };

      Thread t = new Thread(r);
      t.setDaemon(true);
      t.start();
    } catch (DebugException d) {
      evaluationAborted();
      throw d;
    } catch (CoreException e) {
      evaluationAborted();
      throw new DebugException(e.getStatus());
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.DebugException

Copyright © 2018 www.massapicom. 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.