org.xnap.util
Class UncaughtExceptionManager

java.lang.Object
  extended by org.xnap.util.UncaughtExceptionManager

public class UncaughtExceptionManager
extends java.lang.Object


Field Summary
protected static org.apache.log4j.Logger logger
           
 
Method Summary
 void addExceptionListener(UncaughtExceptionListener l)
           
 void dontNotifyAgain(java.lang.Throwable e)
           
static UncaughtExceptionManager getInstance()
           
static java.lang.String getPlugin(java.lang.Throwable e)
           
static java.lang.String getStackTrace(java.lang.Throwable e)
          Returns stacktrace as String
 void notify(java.lang.Thread t, java.lang.Throwable e)
          Handles e thrown by t.
 void notify(java.lang.Throwable e)
           
static java.lang.String removeExceptionDescription(java.lang.String trace, java.lang.String prefix)
           
 void removeExceptionListener(UncaughtExceptionListener l)
           
 void sendProblemReport(java.lang.Thread thread, java.lang.Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
Method Detail

getInstance

public static UncaughtExceptionManager getInstance()

addExceptionListener

public void addExceptionListener(UncaughtExceptionListener l)

removeExceptionListener

public void removeExceptionListener(UncaughtExceptionListener l)

notify

public void notify(java.lang.Thread t,
                   java.lang.Throwable e)
Handles e thrown by t. Notifies all listeners in case e is not blacklisted.


notify

public void notify(java.lang.Throwable e)

dontNotifyAgain

public void dontNotifyAgain(java.lang.Throwable e)

getStackTrace

public static java.lang.String getStackTrace(java.lang.Throwable e)
Returns stacktrace as String

Parameters:
e -

removeExceptionDescription

public static java.lang.String removeExceptionDescription(java.lang.String trace,
                                                          java.lang.String prefix)

getPlugin

public static java.lang.String getPlugin(java.lang.Throwable e)

sendProblemReport

public void sendProblemReport(java.lang.Thread thread,
                              java.lang.Throwable throwable)
                       throws java.io.IOException
Parameters:
thread -
throwable -
Throws:
java.io.IOException


Copyright © 2001-2005 XNap Team. All Rights Reserved.