allensoft.bug
Class CrashReportingThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--allensoft.bug.CrashReportingThread
All Implemented Interfaces:
java.lang.Runnable

public class CrashReportingThread
extends java.lang.Thread

A Thread sub class that automatically reports any crashes (i.e uncaught exceptions/errors) that occurr during its execution. Use this class in place of the java.lang.Thread class to ensure all threads in your application will report their crashes. This class can be used exactly like the java.lang.Thread class except that instead of overriding the run method you must override the runThread method.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CrashReportingThread()
           
CrashReportingThread(java.lang.Runnable target)
           
CrashReportingThread(java.lang.Runnable target, java.lang.String name)
           
CrashReportingThread(java.lang.String name)
           
CrashReportingThread(java.lang.ThreadGroup group, java.lang.Runnable target)
           
CrashReportingThread(java.lang.ThreadGroup group, java.lang.Runnable target, java.lang.String name)
           
CrashReportingThread(java.lang.ThreadGroup group, java.lang.String name)
           
 
Method Summary
 void run()
           
 void runThread()
          Override this method to provide the functionality for your thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CrashReportingThread

public CrashReportingThread()

CrashReportingThread

public CrashReportingThread(java.lang.Runnable target)

CrashReportingThread

public CrashReportingThread(java.lang.Runnable target,
                            java.lang.String name)

CrashReportingThread

public CrashReportingThread(java.lang.String name)

CrashReportingThread

public CrashReportingThread(java.lang.ThreadGroup group,
                            java.lang.Runnable target)

CrashReportingThread

public CrashReportingThread(java.lang.ThreadGroup group,
                            java.lang.Runnable target,
                            java.lang.String name)

CrashReportingThread

public CrashReportingThread(java.lang.ThreadGroup group,
                            java.lang.String name)
Method Detail

run

public final void run()
Overrides:
run in class java.lang.Thread

runThread

public void runThread()
Override this method to provide the functionality for your thread. This only needs to be done if you did not provide a Runnable object to the constructor.