public class ExceptionThread
extends java.lang.Thread
| Constructor and Description |
|---|
ExceptionThread(java.lang.Runnable target,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getException()
Fetches the exception, if any, generated during this thread's execution.
|
java.lang.Object |
getResult()
Fetches the result, if any, generated during this thread's execution.
|
void |
setException(java.lang.Throwable ex)
Stores the exception, if any, generated during this thread's execution.
|
void |
setResult(java.lang.Object obj)
Stores the result, if any, generated during this thread's execution.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic ExceptionThread(java.lang.Runnable target,
java.lang.String name)
public java.lang.Object getResult()
public void setResult(java.lang.Object obj)
public java.lang.Throwable getException()
public void setException(java.lang.Throwable ex)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.