Examples of StackTrace


Examples of de.fu_berlin.inf.dpp.util.StackTrace

        if (editorManager == null)
            throw new IllegalArgumentException();

        if (partListeners.containsKey(editorManager)) {
            log.error("EditorPartListener was added twice: ", new StackTrace());
            removeEditorPartListener(editorManager);
        }

        IPartListener2 partListener = new SafePartListener2(log,
            new EditorPartListener(editorManager));
View Full Code Here

Examples of de.fu_berlin.inf.dpp.util.StackTrace

        }
        IFile file = path.getFile();

        if (!file.exists()) {
            log.error("EditorAPI cannot open file which does not exist: "
                + file, new StackTrace());
            return null;
        }

        IWorkbenchWindow window = EditorAPI.getActiveWindow();
        if (window != null) {
View Full Code Here

Examples of de.fu_berlin.inf.dpp.util.StackTrace

            editorManager, editorPart);

        if (editorListeners.containsKey(key)) {
            log.error(
                "SharedEditorListener was added twice: "
                    + editorPart.getTitle(), new StackTrace());
            removeSharedEditorListener(editorManager, editorPart);
        }
        EditorListener listener = new EditorListener(editorManager);
        listener.bind(editorPart);
        editorListeners.put(key, listener);
View Full Code Here

Examples of nexj.core.util.StackTrace

                  {
                     m_logger.log(nLevel, buf);
                  }
                  else
                  {
                     StackTrace t = new StackTrace();

                     m_query.getInvocationContext().getMachine().updateStackTrace(t);
                     m_logger.log(nLevel, buf, t);
                     m_bStackLogged = true;
                  }
View Full Code Here

Examples of nexj.core.util.StackTrace

            logQuery(Logger.WARN);
         }

         if (m_logger.isWarnEnabled())
         {
            StackTrace t = new StackTrace();

            m_query.getInvocationContext().getMachine().updateStackTrace(t);
            m_logger.warn(getType() + " execution time: " + lDuration + " ms (potential performance problem)", t);
         }
      }
View Full Code Here

Examples of nexj.core.util.StackTrace

      }
      catch (Exception e)
      {
         m_context.getMachine().updateStackTrace(e);

         StackTrace trace = new StackTrace();
         StackTraceElement[] traceArray = e.getStackTrace();
         StackTraceElement[] currentArray = trace.getStackTrace();
         StackTraceElement[] amendedTraceArray = new StackTraceElement[traceArray.length + currentArray.length];

         System.arraycopy(traceArray, 0, amendedTraceArray, 0, traceArray.length);
         System.arraycopy(currentArray, 0, amendedTraceArray, traceArray.length, currentArray.length);
View Full Code Here

Examples of nexj.core.util.StackTrace

                     {
                        String sMsg = "Loading collection \"" + m_attribute.getName() + "\" of " + m_container;

                        if (s_logger.isDumpEnabled())
                        {
                           StackTrace t = new StackTrace();

                           m_container.getInvocationContext().getMachine().updateStackTrace(t);
                           s_logger.dump(sMsg, t);
                        }
                        else
View Full Code Here

Examples of org.netbeans.modules.exceptions.entity.Stacktrace

     */
    private static List<Stacktrace> reduceCandidates(EntityManager em, List<Stacktrace> candidates, Throwable innerThrowable) {
        List<Stacktrace> accepted = new LinkedList<Stacktrace>();
        List<Stacktrace> acceptedParents = new LinkedList<Stacktrace>();
        for (Stacktrace stack : candidates) {
            Stacktrace parent = stack.getStacktrace();
            if (parent == null){
                accepted.add(stack);
            }else if (FilteringUtils.verifyTheSameStacktraces(em, innerThrowable, parent, 5)){
                acceptedParents.add(parent);
            }
View Full Code Here

Examples of org.rascalmpl.interpreter.StackTrace

    String content = e.getLocation().toString()
        + ": "
        + lros.getBuffer().toString()
        + "\n";
   
    StackTrace trace = e.getTrace();
    if (trace != null) {
      content += trace.toLinkedString() + '\n';
    }
    return content;
  }
View Full Code Here

Examples of org.rascalmpl.interpreter.StackTrace

      Throwable targetException = e.getTargetException();
     
      if (targetException instanceof Throw) {
        Throw th = (Throw) targetException;
       
        StackTrace trace = new StackTrace();
        trace.addAll(th.getTrace());
       
        ISourceLocation loc = th.getLocation();
        if (loc == null) {
          loc = getAst().getLocation();
        }
        trace.add(loc, null);

        th.setLocation(loc);
        trace.addAll(eval.getStackTrace());
        th.setTrace(trace.freeze());
        throw th;
      }
      else if (targetException instanceof StaticError) {
        throw (StaticError) targetException;
      }
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.