JavaTM 2 Platform
Standard Ed. 6

java.util.concurrent
类 RejectedExecutionException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.lang.RuntimeException
              继承者 java.util.concurrent.RejectedExecutionException
所有已实现的接口:
Serializable

public class RejectedExecutionException
extends RuntimeException

当无法执行某个任务时,由 Executor 抛出的异常。

从以下版本开始:
1.5
另请参见:
序列化表格

构造方法摘要
RejectedExecutionException()
          构造不带详细消息的 RejectedExecutionException
RejectedExecutionException(String message)
          构造带指定详细消息的 RejectedExecutionException
RejectedExecutionException(String message, Throwable cause)
          构造带指定详细消息和原因的 RejectedExecutionException
RejectedExecutionException(Throwable cause)
          构造带指定原因的 RejectedExecutionException
 
方法摘要
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

RejectedExecutionException

public RejectedExecutionException()
构造不带详细消息的 RejectedExecutionException。原因尚未进行初始化,可在以后通过调用 initCause 来初始化。


RejectedExecutionException

public RejectedExecutionException(String message)
构造带指定详细消息的 RejectedExecutionException。原因尚未进行初始化,可在以后通过调用 initCause 来初始化。

参数:
message - 详细消息。

RejectedExecutionException

public RejectedExecutionException(String message,
                                  Throwable cause)
构造带指定详细消息和原因的 RejectedExecutionException

参数:
message - 详细消息。
cause - 原因(保存此原因,是为了以后通过 Throwable.getCause() 方法来获取)。

RejectedExecutionException

public RejectedExecutionException(Throwable cause)
构造带指定原因的 RejectedExecutionException。详细消息设置为:
 (cause ==
 null ? null :cause.toString())
(它通常包含该类和 cause 的详细消息)。

参数:
cause - 原因(保存此原因,是为了以后通过 Throwable.getCause() 方法来获取)。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only