Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.DebugException


   */
  protected StackFrame getUnderlyingStackFrame() throws DebugException {
    synchronized (fThread) {
      if (fStackFrame == null) {
        if (fDepth == -1) {
          throw new DebugException(new Status(IStatus.ERROR,
              JDIDebugPlugin.getUniqueIdentifier(),
              IJavaStackFrame.ERR_INVALID_STACK_FRAME,
              JDIDebugModelMessages.JDIStackFrame_25, null));
        }
        if (fThread.isSuspended()) {
          // re-index stack frames - See Bug 47198
          fThread.computeStackFrames();
          if (fDepth == -1) {
            // If depth is -1, then this is an invalid frame
            throw new DebugException(new Status(IStatus.ERROR,
                JDIDebugPlugin.getUniqueIdentifier(),
                IJavaStackFrame.ERR_INVALID_STACK_FRAME,
                JDIDebugModelMessages.JDIStackFrame_25, null));
          }
        } else {
          throw new DebugException(new Status(IStatus.ERROR,
              JDIDebugPlugin.getUniqueIdentifier(),
              IJavaThread.ERR_THREAD_NOT_SUSPENDED,
              JDIDebugModelMessages.JDIStackFrame_25, null));
        }
      }
View Full Code Here


   * @param message
   *            the message that states that access or modification
   *            watchpoints are not supported
   */
  protected void notSupported(String message) throws DebugException {
    throw new DebugException(new Status(IStatus.ERROR,
        DebugPlugin.getUniqueIdentifier(),
        DebugException.NOT_SUPPORTED, message, null)); //
  }
View Full Code Here

        return new JavaStructureErrorValue(
            LogicalStructuresMessages.JavaLogicalStructure_1,
            fEvaluationValue);
      }
      if (fResult.hasErrors()) {
        DebugException exception = fResult.getException();
        String message;
        if (exception != null) {
          if (exception.getStatus().getException() instanceof UnsupportedOperationException) {
            message = LogicalStructuresMessages.JavaLogicalStructure_0;
          } else if (exception.getStatus().getCode() == IJavaThread.ERR_THREAD_NOT_SUSPENDED) {
            // throw this exception so the content provider can
            // handle if (cancel the update)
            throw exception;
          } else {
            message = MessageFormat.format(LogicalStructuresMessages.JavaLogicalStructure_2, exception.getMessage());
          }
        } else {
          message = LogicalStructuresMessages.JavaLogicalStructure_3;
        }
        return new JavaStructureErrorValue(message, fEvaluationValue);
View Full Code Here

   * underlying exception.
   */
  @Override
  protected void throwDebugException(String message, int code,
      Throwable exception) throws DebugException {
    throw new DebugException(new Status(IStatus.ERROR,
        JDIDebugModel.getPluginIdentifier(), code, message, exception));
  }
View Full Code Here

          for (int j = 0; j < numThreads; j++) {
            notifyFailedDrop(
                ((JDIThread) threads[i]).computeStackFrames(),
                replacedClassNames);
          }
          throw new DebugException(
              new Status(
                  IStatus.ERROR,
                  JDIDebugModel.getPluginIdentifier(),
                  DebugException.NOT_SUPPORTED,
                  JDIDebugHCRMessages.JavaHotCodeReplaceManager_Drop_to_frame_not_supported,
View Full Code Here

        type, createInAStaticMethod, fLocalVariableTypeNames,
        fLocalVariableNames, fCodeSnippet, sourceLevel);
    unit.accept(visitor);

    if (visitor.hasError()) {
      throw new DebugException(new Status(IStatus.ERROR,
          JDIDebugPlugin.getUniqueIdentifier(), IStatus.OK,
          visitor.getError(), null));
    }

    String sourceRes = visitor.getSource();
View Full Code Here

    }

    public static void log(Throwable t) {
        Throwable top = t;
        if ( t instanceof DebugException ) {
            DebugException de = (DebugException) t;
            IStatus status = de.getStatus();
            if ( status.getException() != null ) {
                top = status.getException();
            }
        }
        log( new Status( IStatus.ERROR,
View Full Code Here

    }

    public static void log(Throwable t) {
        Throwable top = t;
        if ( t instanceof DebugException ) {
            DebugException de = (DebugException) t;
            IStatus status = de.getStatus();
            if ( status.getException() != null ) {
                top = status.getException();
            }
        }
        log( new Status( IStatus.ERROR,
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.