Package org.compiere.util
Class Trace
java.lang.Object
org.compiere.util.Trace
Stack Trace utility methods
- Version:
 - $Id: Trace.java,v 1.2 2006/07/30 00:52:23 jjanke Exp $
 - Author:
 - Jorg Janke
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCallerClass(int nestLevel) Get Caller with nest Levelstatic String[]getCallerClasses(Throwable caller, int maxNestLevel) Get Caller Arraystatic booleanisCalledFrom(String className) Is the caller Called From the class mentionedstatic voidPrint Stack Trace Info (raw) adempiereOnly - first9onlystatic voidprintStack(boolean adempiereOnly, boolean first9only) Print Stack Trace Info (raw) 
- 
Constructor Details
- 
Trace
public Trace() 
 - 
 - 
Method Details
- 
getCallerClasses
Get Caller Array- Parameters:
 caller- Optional Throwable/ExceptionmaxNestLevel- maximum call nesting level - 0 is all- Returns:
 - Array of class.method(file:line)
 
 - 
getCallerClass
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
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) 
 -