de.cesr.uranus.util
Class UIdentifyCallerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.cesr.uranus.util.UIdentifyCallerException
All Implemented Interfaces:
Serializable

public class UIdentifyCallerException
extends Exception

Uranus - Universal RAndom NUmber Service

See Also:
Serialized Form

Field Summary
protected static boolean omitLineNumbers
           
 
Constructor Summary
UIdentifyCallerException()
           
 
Method Summary
static int getNumStackTraceFrames()
           
 StackTraceElement[] getStackTrace()
           
protected  String getStackTraceElementString(StackTraceElement e)
          Prints StackTraceElement without line numbers
static boolean isOmitLineNumbers()
           
 void printStackTrace(PrintStream writer)
           
 void printStackTrace(PrintWriter writer)
           
static void setNumStackTraceFrames(int numStackTraceFrames)
           
static void setOmitLineNumbers(boolean omit)
          True to omit line numbers in stack trace (default is true)
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

omitLineNumbers

protected static boolean omitLineNumbers
Constructor Detail

UIdentifyCallerException

public UIdentifyCallerException()
Method Detail

getStackTrace

public StackTraceElement[] getStackTrace()
Overrides:
getStackTrace in class Throwable
See Also:
Throwable.getStackTrace()

printStackTrace

public void printStackTrace(PrintWriter writer)
Overrides:
printStackTrace in class Throwable
See Also:
Throwable.printStackTrace(java.io.PrintWriter)

getStackTraceElementString

protected String getStackTraceElementString(StackTraceElement e)
Prints StackTraceElement without line numbers

Parameters:
e - stack trace element
Returns:
stack trace element description

printStackTrace

public void printStackTrace(PrintStream writer)
Overrides:
printStackTrace in class Throwable
See Also:
Throwable.printStackTrace(java.io.PrintStream)

isOmitLineNumbers

public static boolean isOmitLineNumbers()
Returns:
true if line numbers are omitted in stack trace

setOmitLineNumbers

public static void setOmitLineNumbers(boolean omit)
True to omit line numbers in stack trace (default is true)

Parameters:
omitLineNumbers -

getNumStackTraceFrames

public static int getNumStackTraceFrames()
Returns:
number of stack trace frames

setNumStackTraceFrames

public static void setNumStackTraceFrames(int numStackTraceFrames)
Parameters:
number - of stack trace frames