Most visited

Recently visited

Added in API level 1

RejectedExecutionException

public class RejectedExecutionException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.util.concurrent.RejectedExecutionException


当任务不能被接受执行时,由 Executor引发的异常。

Summary

Public constructors

RejectedExecutionException()

构造一个没有详细信息的 RejectedExecutionException

RejectedExecutionException(String message)

用指定的详细信息构造一个 RejectedExecutionException

RejectedExecutionException(String message, Throwable cause)

用指定的详细信息和原因构造一个 RejectedExecutionException

RejectedExecutionException(Throwable cause)

用指定的原因构造一个 RejectedExecutionException

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

RejectedExecutionException

Added in API level 1
RejectedExecutionException ()

构造一个没有详细信息的RejectedExecutionException 原因未初始化,并可能随后通过调用initCause进行初始化。

RejectedExecutionException

Added in API level 1
RejectedExecutionException (String message)

用指定的详细信息构造一个RejectedExecutionException 原因未初始化,并可能随后通过调用initCause进行初始化。

Parameters
message String: the detail message

RejectedExecutionException

Added in API level 1
RejectedExecutionException (String message, 
                Throwable cause)

用指定的详细信息和原因构造一个 RejectedExecutionException

Parameters
message String: the detail message
cause Throwable: the cause (which is saved for later retrieval by the getCause() method)

RejectedExecutionException

Added in API level 1
RejectedExecutionException (Throwable cause)

构造具有指定原因的RejectedExecutionException 详细消息被设定为(cause == null ? null : cause.toString()) (它通常包含的类和详细消息cause )。

Parameters
cause Throwable: the cause (which is saved for later retrieval by the getCause() method)

Hooray!