ExceptionHandlingThreadGroup (Hyperic HQ Plugin API)
Keywords: org.hyperic.util.unittest.server.ExceptionHandlingThreadGroup class

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.util.unittest.server
Class ExceptionHandlingThreadGroup

    java.lang.Object
      java.lang.ThreadGroup
          org.hyperic.util.unittest.server.ExceptionHandlingThreadGroup

All Implemented Interfaces:
  java.lang.Thread.UncaughtExceptionHandler

    public class ExceptionHandlingThreadGroup

extends java.lang.ThreadGroup

A thread group that a client may use for registering an action to perform if an uncaught exception is handled. The uncaught exception may also be retrieved.

Constructor Summary
`ExceptionHandlingThreadGroup(java.lang.String name)`

Method Summary
`java.lang.Throwable` | `getUncaughtException()`
`void` | `setUncaughtExceptionAction(java.lang.Runnable runnable)` Set an action to execute in the uncaught exception handler.
`void` | `uncaughtException(java.lang.Thread t, java.lang.Throwable e)`

Methods inherited from class java.lang.ThreadGroup
`activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ExceptionHandlingThreadGroup

    public ExceptionHandlingThreadGroup(java.lang.String name)

Method Detail

### getUncaughtException

    public java.lang.Throwable getUncaughtException()

  Returns:
    The uncaught exception or `null`.

### setUncaughtExceptionAction

    public void setUncaughtExceptionAction(java.lang.Runnable runnable)

  Set an action to execute in the uncaught exception handler.

  Parameters:
    `runnable` - The runnable representing the action to execute.

### uncaughtException

    public void uncaughtException(java.lang.Thread t,
                                  java.lang.Throwable e)

  Specified by:
    `uncaughtException` in interface `java.lang.Thread.UncaughtExceptionHandler`
  Overrides:
    `uncaughtException` in class `java.lang.ThreadGroup`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.