Class Trace

java.lang.Object
org.compiere.util.Trace

public class Trace extends Object
Stack Trace Information
Version:
$Id: Trace.java,v 1.2 2006/07/30 00:52:23 jjanke Exp $
Author:
Jorg Janke
  • Constructor Details

    • Trace

      public Trace()
  • Method Details

    • getCallerClasses

      public static String[] getCallerClasses(Throwable caller, int maxNestLevel)
      Get Caller Array
      Parameters:
      caller - Optional Throwable/Exception
      maxNestLevel - maximum call nesting level - 0 is all
      Returns:
      Array of class.method(file:line)
    • getCallerClass

      public static String getCallerClass(int nestLevel)
      Get Caller with nest Level
      Parameters:
      nestLevel - Nesting Level - 0=calling method, 1=previous, ..
      Returns:
      class name and line info of nesting level or "" if not exist
    • isCalledFrom

      public static boolean isCalledFrom(String className)
      Is the caller Called From the class mentioned
      Parameters:
      className - calling class
      Returns:
      the caller was called from className
    • printStack

      public static void printStack()
      Print Stack Trace Info (raw) adempiereOnly - first9only
    • printStack

      public static void printStack(boolean adempiereOnly, boolean first9only)
      Print Stack Trace Info (raw)