ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/RejectedExecutionException.java
Revision: 1.9
Committed: Wed Jan 16 01:59:47 2013 UTC (11 years, 4 months ago) by jsr166
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +5 -5 lines
Log Message:
<tt> -> {@code

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 jsr166 1.9 * Constructs a {@code RejectedExecutionException} with no detail message.
21 dl 1.1 * 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 jsr166 1.9 * Constructs a {@code RejectedExecutionException} with the
28 dl 1.2 * 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 jsr166 1.9 * Constructs a {@code RejectedExecutionException} with the
40 dl 1.2 * 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 jsr166 1.9 * Constructs a {@code RejectedExecutionException} with the
52 jsr166 1.8 * specified cause. The detail message is set to {@code (cause ==
53     * null ? null : cause.toString())} (which typically contains
54 jsr166 1.9 * the class and detail message of {@code cause}).
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     }