Compiere 3.1

org.compiere.util
Class Trace

java.lang.Object
  extended by 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
Trace()
           
 
Method Summary
static String getCallerClass(int nestLevel)
          Get Caller with nest Level
static String[] getCallerClasses(Throwable caller, int maxNestLevel)
          Get Caller Array
static boolean isCalledFrom(String className)
          Is the caller Called From the class mentioned
static void printStack()
          Print Stack Trace Info (raw) compiereOnly - first9only
static void printStack(boolean compiereOnly, boolean first9only)
          Print Stack Trace Info (raw)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trace

public Trace()
Method Detail

getCallerClasses

public static String[] getCallerClasses(Throwable caller,
                                        int maxNestLevel)
Get Caller Array

Parameters:
caller - Optional Thowable/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) compiereOnly - first9only


printStack

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

Parameters:
compiereOnly - if true - no base classes
first9only - only first 9 lines

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.