ref_send API 2.17
defensive programming in Java

org.waterken.trace
Interface Tracer


public interface Tracer

Permission to produce stack traces.


Method Summary
 java.lang.String readException(java.lang.Throwable e)
          Gets the text message from an exception.
 long timestamp()
          Gets the current timestamp.
 Trace traceException(java.lang.Throwable e)
          Gets the stack trace for a given exception.
 Trace traceHere()
          Gets the current stack trace.
 Trace traceMember(java.lang.reflect.Member lambda)
          Produces a dummy stack trace for a method.
 

Method Detail

timestamp

long timestamp()
Gets the current timestamp.

Returns:
difference, measured in milliseconds, between now and midnight, January 1, 1970 UTC

readException

java.lang.String readException(java.lang.Throwable e)
Gets the text message from an exception.

Parameters:
e - exception to extract message from

traceException

Trace traceException(java.lang.Throwable e)
Gets the stack trace for a given exception.

Parameters:
e - exception to trace

traceMember

Trace traceMember(java.lang.reflect.Member lambda)
Produces a dummy stack trace for a method.

Parameters:
lambda - sole member of the dummy stack trace

traceHere

Trace traceHere()
Gets the current stack trace.


ref_send API 2.17
defensive programming in Java

Submit a bug or feature, or get help

Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.