org.xnap.util
Class UncaughtExceptionManager
java.lang.Object
org.xnap.util.UncaughtExceptionManager
public class UncaughtExceptionManager
- extends java.lang.Object
Field Summary |
protected static org.apache.log4j.Logger |
logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static org.apache.log4j.Logger logger
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.