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
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
Print Stack Trace Info (raw) adempiereOnly - first9onlystatic void
printStack
(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)
-