Class StackTrace

java.lang.Object
overit.geocall.util.StackTrace

public class StackTrace extends Object
Utility class used to manage the stack trace.
  • Method Details

    • here

      public static StackTraceElement here()
      Returns the stack trace element representing the stack dump of this thread.
      Returns:
      a StackTraceElement that represents one stack frame.
    • caller

      public static StackTraceElement caller()
      Returns the stack trace element representing the stack dump of the caller thread.
      Returns:
      a StackTraceElement that represents one stack frame.
    • pickup

      public static StackTraceElement pickup(int stackPosition)
      Returns the stack trace element in the stack position representing the stack dump of this thread.
      Parameters:
      stackPosition - The position of the stack
      Returns:
      a StackTraceElement that represents one stack frame.