public class RejectedExecutionException extends RuntimeException
Executor
当任务不能被执行。
Constructor and Description |
---|
RejectedExecutionException()
创建一个不含详细信息
RejectedExecutionException 。
|
RejectedExecutionException(String message)
创建一个指定详细信息的
RejectedExecutionException 。
|
RejectedExecutionException(String message, Throwable cause)
创建一个指定详细信息和原因
RejectedExecutionException 。
|
RejectedExecutionException(Throwable cause)
构建一个与指定的原因
RejectedExecutionException 。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RejectedExecutionException()
RejectedExecutionException
。原因是没有初始化,初始化,随后可通过调用
initCause
。
public RejectedExecutionException(String message)
RejectedExecutionException
。原因是没有初始化,初始化,随后可通过调用
initCause
。
message
-详细信息
public RejectedExecutionException(String message, Throwable cause)
RejectedExecutionException
。
message
-详细信息
cause
的原因(这是以后的
Throwable.getCause()
方法检索)
public RejectedExecutionException(Throwable cause)
RejectedExecutionException
。的详细信息将
(cause == null ? null : cause.toString())
(通常包含
cause
类和详细信息)。
cause
的原因(这是以后的
Throwable.getCause()
方法检索)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.