net.sourceforge.acelogger.execution
Class UncaughtExceptionLogger

java.lang.Object
  extended by net.sourceforge.acelogger.execution.UncaughtExceptionLogger
All Implemented Interfaces:
Thread.UncaughtExceptionHandler

public final class UncaughtExceptionLogger
extends Object
implements Thread.UncaughtExceptionHandler

An implementation of Thread.UncaughtExceptionHandler that logs the exception using the internal logger.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)

Method Summary
static UncaughtExceptionLogger getInstance()
          Returns an instance of UncaughtExceptionLogger, which is a singleton.
 void uncaughtException(Thread threadOfOrigin, Throwable uncaughtException)
          Logs any uncaught exceptions using the internal logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

uncaughtException

public void uncaughtException(Thread threadOfOrigin,
                              Throwable uncaughtException)
Logs any uncaught exceptions using the internal logger.

Specified by:
uncaughtException in interface Thread.UncaughtExceptionHandler
Parameters:
threadOfOrigin - The thread where the uncaught exception was thrown.
uncaughtException - The exception itself.
Since:
1.0.0

getInstance

public static UncaughtExceptionLogger getInstance()
Returns an instance of UncaughtExceptionLogger, which is a singleton.

Returns:
An instance of this class.
Since:
1.0.0


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.