|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ExecutionException | Line # 18 | 3 | 4 | 28.6% |
0.2857143
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (25) | |||
| Result | |||
|
0.2857143
|
ScheduledExecutorTest.testInvokeAny4
ScheduledExecutorTest.testInvokeAny4
|
1 PASS | |
|
0.2857143
|
FutureTaskTest.testSetException
FutureTaskTest.testSetException
|
1 PASS | |
|
0.2857143
|
AbstractExecutorServiceTest.testTimedInvokeAny4
AbstractExecutorServiceTest.testTimedInvokeAny4
|
1 PASS | |
|
0.2857143
|
ScheduledExecutorTest.testTimedInvokeAll4
ScheduledExecutorTest.testTimedInvokeAll4
|
1 PASS | |
|
0.2857143
|
ThreadPoolExecutorTest.testTimedInvokeAll4
ThreadPoolExecutorTest.testTimedInvokeAll4
|
1 PASS | |
|
0.2857143
|
ThreadPoolExecutorTest.testInvokeAny4
ThreadPoolExecutorTest.testInvokeAny4
|
1 PASS | |
|
0.2857143
|
AbstractExecutorServiceTest.testInvokeAny4
AbstractExecutorServiceTest.testInvokeAny4
|
1 PASS | |
|
0.2857143
|
FutureTaskTest.testGet_ExecutionException
FutureTaskTest.testGet_ExecutionException
|
1 PASS | |
|
0.2857143
|
ThreadPoolExecutorTest.testInvokeAny4
ThreadPoolExecutorTest.testInvokeAny4
|
1 PASS | |
|
0.2857143
|
ThreadPoolExecutorTest.testTimedInvokeAll4
ThreadPoolExecutorTest.testTimedInvokeAll4
|
1 PASS | |
|
0.2857143
|
AbstractExecutorServiceTest.testInvokeAll4
AbstractExecutorServiceTest.testInvokeAll4
|
1 PASS | |
|
0.2857143
|
ThreadPoolExecutorTest.testTimedInvokeAny4
ThreadPoolExecutorTest.testTimedInvokeAny4
|
1 PASS | |
|
0.2857143
|
ScheduledExecutorTest.testInvokeAll4
ScheduledExecutorTest.testInvokeAll4
|
1 PASS | |
|
0.2857143
|
ThreadPoolExecutorTest.testTimedInvokeAny4
ThreadPoolExecutorTest.testTimedInvokeAny4
|
1 PASS | |
|
0.2857143
|
AbstractExecutorServiceTest.testSubmitFailedPrivilegedExceptionAction
AbstractExecutorServiceTest.testSubmitFailedPrivilegedExceptionAction
|
1 PASS | |
|
0.2857143
|
ScheduledExecutorTest.testTimedInvokeAny4
ScheduledExecutorTest.testTimedInvokeAny4
|
1 PASS | |
|
0.2857143
|
AbstractExecutorServiceTest.testTimedInvokeAll4
AbstractExecutorServiceTest.testTimedInvokeAll4
|
1 PASS | |
|
0.2857143
|
ScheduledExecutorTest.testTimedInvokeAny4
ScheduledExecutorTest.testTimedInvokeAny4
|
1 PASS | |
|
0.2857143
|
FutureTaskTest.testTimedGet_ExecutionException2
FutureTaskTest.testTimedGet_ExecutionException2
|
1 PASS | |
|
0.2857143
|
ScheduledExecutorTest.testInvokeAny4
ScheduledExecutorTest.testInvokeAny4
|
1 PASS | |
|
0.2857143
|
ThreadPoolExecutorTest.testInvokeAll4
ThreadPoolExecutorTest.testInvokeAll4
|
1 PASS | |
|
0.2857143
|
ThreadPoolExecutorTest.testInvokeAll4
ThreadPoolExecutorTest.testInvokeAll4
|
1 PASS | |
|
0.2857143
|
ScheduledExecutorTest.testInvokeAll4
ScheduledExecutorTest.testInvokeAll4
|
1 PASS | |
|
0.2857143
|
AbstractExecutorServiceTest.testSubmitEE
AbstractExecutorServiceTest.testSubmitEE
|
1 PASS | |
|
0.2857143
|
ScheduledExecutorTest.testTimedInvokeAll4
ScheduledExecutorTest.testTimedInvokeAll4
|
1 PASS | |
| 1 | /* | |
| 2 | * Written by Doug Lea with assistance from members of JCP JSR-166 | |
| 3 | * Expert Group and released to the public domain, as explained at | |
| 4 | * http://creativecommons.org/licenses/publicdomain | |
| 5 | */ | |
| 6 | ||
| 7 | package edu.emory.mathcs.backport.java.util.concurrent; | |
| 8 | ||
| 9 | /** | |
| 10 | * Exception thrown when attempting to retrieve the result of a task | |
| 11 | * that aborted by throwing an exception. This exception can be | |
| 12 | * inspected using the {@link #getCause()} method. | |
| 13 | * | |
| 14 | * @see Future | |
| 15 | * @since 1.5 | |
| 16 | * @author Doug Lea | |
| 17 | */ | |
| 18 | public class ExecutionException extends Exception { | |
| 19 | private static final long serialVersionUID = 7830266012832686185L; | |
| 20 | ||
| 21 | /** | |
| 22 | * Constructs an <tt>ExecutionException</tt> with no detail message. | |
| 23 | * The cause is not initialized, and may subsequently be | |
| 24 | * initialized by a call to {@link #initCause(Throwable) initCause}. | |
| 25 | */ | |
| 26 | 0 |
protected ExecutionException() { } |
| 27 | ||
| 28 | /** | |
| 29 | * Constructs an <tt>ExecutionException</tt> with the specified detail | |
| 30 | * message. The cause is not initialized, and may subsequently be | |
| 31 | * initialized by a call to {@link #initCause(Throwable) initCause}. | |
| 32 | * | |
| 33 | * @param message the detail message | |
| 34 | */ | |
| 35 | 0 |
protected ExecutionException(String message) { |
| 36 | 0 | super(message); |
| 37 | } | |
| 38 | ||
| 39 | /** | |
| 40 | * Constructs an <tt>ExecutionException</tt> with the specified detail | |
| 41 | * message and cause. | |
| 42 | * | |
| 43 | * @param message the detail message | |
| 44 | * @param cause the cause (which is saved for later retrieval by the | |
| 45 | * {@link #getCause()} method) | |
| 46 | */ | |
| 47 | 0 |
public ExecutionException(String message, Throwable cause) { |
| 48 | 0 | super(message, cause); |
| 49 | } | |
| 50 | ||
| 51 | /** | |
| 52 | * Constructs an <tt>ExecutionException</tt> with the specified cause. | |
| 53 | * The detail message is set to: | |
| 54 | * <pre> | |
| 55 | * (cause == null ? null : cause.toString())</pre> | |
| 56 | * (which typically contains the class and detail message of | |
| 57 | * <tt>cause</tt>). | |
| 58 | * | |
| 59 | * @param cause the cause (which is saved for later retrieval by the | |
| 60 | * {@link #getCause()} method) | |
| 61 | */ | |
| 62 | 33 |
public ExecutionException(Throwable cause) { |
| 63 | 33 | super(cause); |
| 64 | } | |
| 65 | } | |
|
||||||||||