ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/RejectedExecutionException.java
Revision: 1.7
Committed: Tue Mar 15 19:47:03 2011 UTC (13 years, 2 months ago) by jsr166
Branch: MAIN
CVS Tags: release-1_7_0
Changes since 1.6: +1 -1 lines
Log Message:
Update Creative Commons license URL in legal notices

File Contents

# User Rev Content
1 dl 1.1 /*
2     * Written by Doug Lea with assistance from members of JCP JSR-166
3 dl 1.5 * Expert Group and released to the public domain, as explained at
4 jsr166 1.7 * http://creativecommons.org/publicdomain/zero/1.0/
5 dl 1.1 */
6    
7     package java.util.concurrent;
8    
9     /**
10 dl 1.4 * Exception thrown by an {@link Executor} when a task cannot be
11     * accepted for execution.
12 jsr166 1.6 *
13 dl 1.1 * @since 1.5
14 dl 1.4 * @author Doug Lea
15 dl 1.1 */
16     public class RejectedExecutionException extends RuntimeException {
17 dl 1.3 private static final long serialVersionUID = -375805702767069545L;
18 dl 1.1
19     /**
20     * Constructs a <tt>RejectedExecutionException</tt> with no detail message.
21     * The cause is not initialized, and may subsequently be
22     * initialized by a call to {@link #initCause(Throwable) initCause}.
23     */
24     public RejectedExecutionException() { }
25    
26     /**
27 dl 1.2 * Constructs a <tt>RejectedExecutionException</tt> with the
28     * specified detail message. The cause is not initialized, and may
29     * subsequently be initialized by a call to {@link
30     * #initCause(Throwable) initCause}.
31 dl 1.1 *
32     * @param message the detail message
33     */
34     public RejectedExecutionException(String message) {
35     super(message);
36     }
37    
38     /**
39 dl 1.2 * Constructs a <tt>RejectedExecutionException</tt> with the
40     * specified detail message and cause.
41 dl 1.1 *
42     * @param message the detail message
43     * @param cause the cause (which is saved for later retrieval by the
44     * {@link #getCause()} method)
45     */
46     public RejectedExecutionException(String message, Throwable cause) {
47     super(message, cause);
48     }
49    
50     /**
51 dl 1.2 * Constructs a <tt>RejectedExecutionException</tt> with the
52     * specified cause. The detail message is set to: <pre> (cause ==
53     * null ? null : cause.toString())</pre> (which typically contains
54     * the class and detail message of <tt>cause</tt>).
55 dl 1.1 *
56     * @param cause the cause (which is saved for later retrieval by the
57     * {@link #getCause()} method)
58     */
59     public RejectedExecutionException(Throwable cause) {
60     super(cause);
61     }
62     }