ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/RejectedExecutionException.java
Revision: 1.2
Committed: Tue Jun 24 14:34:48 2003 UTC (20 years, 11 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_CR1, JSR166_PRELIMINARY_TEST_RELEASE_2
Changes since 1.1: +13 -13 lines
Log Message:
Added missing javadoc tags; minor reformatting

File Contents

# User Rev Content
1 dl 1.1 /*
2     * Written by Doug Lea with assistance from members of JCP JSR-166
3     * Expert Group and released to the public domain. Use, modify, and
4     * redistribute this code in any way without acknowledgement.
5     */
6    
7     package java.util.concurrent;
8    
9     /**
10     * Thrown by an <tt>Executor</tt> when a task cannot be accepted for execution.
11     *
12     * @since 1.5
13     * @see Executor#execute
14     *
15     * @spec JSR-166
16 dl 1.2 * @revised $Date: 2003/05/27 15:50:14 $
17     * @editor $Author: dl $
18    
19 dl 1.1 */
20     public class RejectedExecutionException extends RuntimeException {
21    
22     /**
23     * Constructs a <tt>RejectedExecutionException</tt> with no detail message.
24     * The cause is not initialized, and may subsequently be
25     * initialized by a call to {@link #initCause(Throwable) initCause}.
26     */
27     public RejectedExecutionException() { }
28    
29     /**
30 dl 1.2 * Constructs a <tt>RejectedExecutionException</tt> with the
31     * specified detail message. The cause is not initialized, and may
32     * subsequently be initialized by a call to {@link
33     * #initCause(Throwable) initCause}.
34 dl 1.1 *
35     * @param message the detail message
36     */
37     public RejectedExecutionException(String message) {
38     super(message);
39     }
40    
41     /**
42 dl 1.2 * Constructs a <tt>RejectedExecutionException</tt> with the
43     * specified detail message and cause.
44 dl 1.1 *
45     * @param message the detail message
46     * @param cause the cause (which is saved for later retrieval by the
47     * {@link #getCause()} method)
48     */
49     public RejectedExecutionException(String message, Throwable cause) {
50     super(message, cause);
51     }
52    
53     /**
54 dl 1.2 * Constructs a <tt>RejectedExecutionException</tt> with the
55     * specified cause. The detail message is set to: <pre> (cause ==
56     * null ? null : cause.toString())</pre> (which typically contains
57     * the class and detail message of <tt>cause</tt>).
58 dl 1.1 *
59     * @param cause the cause (which is saved for later retrieval by the
60     * {@link #getCause()} method)
61     */
62     public RejectedExecutionException(Throwable cause) {
63     super(cause);
64     }
65     }