Dali Provisional API
Release 3.2

org.eclipse.jpt.common.utility
Class MultiThreadedExceptionHandler.Default

java.lang.Object
  extended by org.eclipse.jpt.common.utility.MultiThreadedExceptionHandler.Default
All Implemented Interfaces:
Serializable, ExceptionHandler, MultiThreadedExceptionHandler
Enclosing interface:
MultiThreadedExceptionHandler

public static final class MultiThreadedExceptionHandler.Default
extends Object
implements MultiThreadedExceptionHandler, Serializable

Singleton implementation of the multi-threaded exception handler interface that, like what happens with an unhandled exception (see ThreadGroup.uncaughtException(Thread, Throwable)), prints the exception's stack trace to the "standard" error output stream.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.utility.MultiThreadedExceptionHandler
MultiThreadedExceptionHandler.Default, MultiThreadedExceptionHandler.Null, MultiThreadedExceptionHandler.Runtime
 
Field Summary
static ExceptionHandler INSTANCE
           
 
Method Summary
 void handleException(Thread thread, Throwable t)
          The specified exception was thrown while the specified thread was executing.
 void handleException(Throwable t)
          The specified exception was thrown.
static ExceptionHandler instance()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final ExceptionHandler INSTANCE
Method Detail

instance

public static ExceptionHandler instance()

handleException

public void handleException(Thread thread,
                            Throwable t)
Description copied from interface: MultiThreadedExceptionHandler
The specified exception was thrown while the specified thread was executing. Handle it appropriately.

Specified by:
handleException in interface MultiThreadedExceptionHandler

handleException

public void handleException(Throwable t)
Description copied from interface: ExceptionHandler
The specified exception was thrown. Handle it appropriately.

Specified by:
handleException in interface ExceptionHandler

toString

public String toString()
Overrides:
toString in class Object

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.