Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.DebugException


   * @throws DebugException
   */
  private void validateReceivingType(final IType receivingType)
      throws DebugException {
    if (receivingType == null) {
      throw new DebugException(
          new Status(
              IStatus.ERROR,
              JDIDebugModel.getPluginIdentifier(),
              DebugException.REQUEST_FAILED,
              EvaluationMessages.LocalEvaluationEngine_Evaluation_failed___unable_to_determine_receiving_type_context__18,
              null));
    }

    if (receivingType.getDeclaringType() != null) {
      throw new DebugException(
          new Status(
              IStatus.ERROR,
              JDIDebugModel.getPluginIdentifier(),
              DebugException.REQUEST_FAILED,
              EvaluationMessages.LocalEvaluationEngine_Evaluation_in_context_of_inner_type_not_supported__19,
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

   * @exception DebugException
   *                if this engine has been disposed
   */
  protected void checkDisposed() throws DebugException {
    if (isDisposed()) {
      throw new DebugException(
          new Status(
              IStatus.ERROR,
              JDIDebugModel.getPluginIdentifier(),
              DebugException.REQUEST_FAILED,
              EvaluationMessages.LocalEvaluationEngine_Evaluation_failed___evaluation_context_has_been_disposed__7,
View Full Code Here

   * @exception DebugException
   *                if this engine is currently performing an evaluation
   */
  protected void checkEvaluating() throws DebugException {
    if (isEvaluating()) {
      throw new DebugException(new Status(IStatus.ERROR,
          JDIDebugModel.getPluginIdentifier(),
          DebugException.REQUEST_FAILED,
          "Cannot perform nested evaluations.", null) //$NON-NLS-1$
      );
    }
View Full Code Here

   *                if this engine's current evaluation thread is not
   *                suspended
   */
  protected void checkThread() throws DebugException {
    if (!getThread().isSuspended()) {
      throw new DebugException(
          new Status(
              IStatus.ERROR,
              JDIDebugModel.getPluginIdentifier(),
              DebugException.REQUEST_FAILED,
              EvaluationMessages.LocalEvaluationEngine_Evaluation_failed___evaluation_thread_must_be_suspended__8,
View Full Code Here

        FileOutputStream stream = new FileOutputStream(classFile);
        stream.write(classFiles[i]);
        stream.close();
        LocalEvaluationEngine.this.addSnippetFile(classFile);
      } catch (IOException e) {
        throw new DebugException(
            new Status(
                IStatus.ERROR,
                JDIDebugModel.getPluginIdentifier(),
                DebugException.REQUEST_FAILED,
                MessageFormat
View Full Code Here

      if (types != null && types.length > 0) {
        classClass = (IJavaClassType) types[0];
      }
      if (classClass == null) {
        // unable to load the class
        throw new DebugException(
            new Status(
                IStatus.ERROR,
                JDIDebugModel.getPluginIdentifier(),
                DebugException.REQUEST_FAILED,
                EvaluationMessages.LocalEvaluationEngine_Evaluation_failed___unable_to_instantiate_code_snippet_class__11,
View Full Code Here

      }
    } else {
      // an object
      return result;
    }
    throw new DebugException(
        new Status(
            IStatus.ERROR,
            JDIDebugModel.getPluginIdentifier(),
            DebugException.REQUEST_FAILED,
            EvaluationMessages.LocalEvaluationEngine_Evaluation_failed___internal_error_retreiving_result__17,
View Full Code Here

  protected void throwDebugException(String message, int code,
      Throwable exception) throws DebugException {
    if (exception instanceof VMDisconnectedException) {
      disconnected();
    }
    throw new DebugException(new Status(IStatus.ERROR,
        JDIDebugModel.getPluginIdentifier(), code, message, exception));
  }
View Full Code Here

   *
   * @param message
   *            The internal error message
   */
  protected void internalError(String message) {
    logError(new DebugException(new Status(IStatus.ERROR,
        JDIDebugModel.getPluginIdentifier(),
        DebugException.INTERNAL_ERROR, message, null)));
  }
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.