Package org.compiere.util
Class Trace
- java.lang.Object
-
- org.compiere.util.Trace
-
public class Trace extends Object
Trace Information- Version:
- $Id: Trace.java,v 1.2 2006/07/30 00:52:23 jjanke Exp $
- Author:
- Jorg Janke
-
-
Constructor Summary
Constructors Constructor Description Trace()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getCallerClass(int nestLevel)
Get Caller with nest Levelstatic String[]
getCallerClasses(Throwable caller, int maxNestLevel)
Get Caller Arraystatic boolean
isCalledFrom(String className)
Is the caller Called From the class mentionedstatic void
printStack()
Print Stack Trace Info (raw) adempiereOnly - first9onlystatic void
printStack(boolean adempiereOnly, boolean first9only)
Print Stack Trace Info (raw)
-
-
-
Method Detail
-
getCallerClasses
public static String[] getCallerClasses(Throwable caller, int maxNestLevel)
Get Caller Array- Parameters:
caller
- Optional Throwable/ExceptionmaxNestLevel
- 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)
-
-