Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.DebugException


    }
   
    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, getUniqueIdentifier(),
View Full Code Here


                String message = "";

                for ( int i = 0; i < errorMessages.length; i++ ) {
                    message += errorMessages[i] + "\n";
                }
                throw new DebugException(new Status(IStatus.ERROR,
                    DroolsIDEPlugin.PLUGIN_ID, DroolsIDEPlugin.INTERNAL_ERROR,
                    "Error when compiling snippet " + snippet + ": " + message, null));
            }
            fResult = null;
            fEvaluationEngine.evaluateExpression(compiledExpression,
View Full Code Here

        fireTerminateEvent();
    }
   
    protected final void unsupportedOperation() throws DebugException
    {
        throw new DebugException(new Status(
            IStatus.ERROR,
            PerlDebugPlugin.getUniqueIdentifier(),
            DebugException.NOT_SUPPORTED,
            "operation not supported",
            null));
View Full Code Here

      }
    }
   
    private void throwNotSupported() throws DebugException
    {
        throw new DebugException(new Status(
            Status.ERROR,
            PerlDebugPlugin.getUniqueIdentifier(),
            DebugException.NOT_SUPPORTED,
            "Operation not supported",
            null));
View Full Code Here

           
            return holder.getDebuggerInterface().eval(DB_DUMP_ARGS);
        }
        catch (IOException e)
        {
            throw new DebugException(new Status(
                IStatus.ERROR,
                PerlDebugPlugin.getUniqueIdentifier(),
                IStatus.OK,
                "An error occurred while retrieving variables from the debugger process",
                e));
View Full Code Here

        if (res instanceof OtpErlangTuple) {
            final OtpErlangTuple t = (OtpErlangTuple) res;
            final OtpErlangObject o = t.elementAt(1);
            final IStatus s = new Status(IStatus.ERROR, BackendActivator.PLUGIN_ID,
                    DebugException.REQUEST_FAILED, o.toString(), null);
            throw new DebugException(s);
        }
        final OtpErlangPid pid = (OtpErlangPid) res;
        return pid;
    }
View Full Code Here

    public void dropToFrame(final int stackFrameNo) throws DebugException {
        if (!ErlideDebug.dropToFrame(fBackend.getOtpRpc(), getMeta(), stackFrameNo)) {
            final IStatus s = new Status(IStatus.ERROR, BackendActivator.PLUGIN_ID,
                    DebugException.REQUEST_FAILED, "frame not found", null);
            throw new DebugException(s);
        }
    }
View Full Code Here

    }

    @Override
    public void setValue(final String expression) throws DebugException {
        if (subVariable) {
            throw new DebugException(new Status(IStatus.ERROR,
                    BackendActivator.PLUGIN_ID, DebugException.NOT_SUPPORTED,
                    "Can't set value of part of expression", null));
        }
        final ErlangDebugTarget edt = getErlangDebugTarget();
        final String err = ErlideDebug.setVariableValue(edt.getBackend().getOtpRpc(),
                name, expression, stackFrameNo - 1, process.getMeta());
        if (err != null) {
            // restore old value
            ErlideDebug.setVariableValue(edt.getBackend().getOtpRpc(), name,
                    value.toString(), stackFrameNo - 1, process.getMeta());
            throw new DebugException(new Status(IStatus.ERROR,
                    BackendActivator.PLUGIN_ID, DebugException.TARGET_REQUEST_FAILED,
                    "Bad expression", null));
        }

    }
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.