Package org.jenkinsci.remoting.util
Class ExecutorServiceUtils.ExecutionRejectedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jenkinsci.remoting.util.ExecutorServiceUtils.ExecutionRejectedException
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ExecutorServiceUtils
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static class ExecutorServiceUtils.ExecutionRejectedException extends Exception
Wraps the runtimeRejectedExecutionException
. The exception also caches the serializable metadata.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExecutionRejectedException(ExecutorService es, RejectedExecutionException cause)
Constructor of the new exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExecutorServiceDisplayName()
String
getRunnableDisplayName()
boolean
isFatal()
Checks if the issue is fatal.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ExecutionRejectedException
public ExecutionRejectedException(ExecutorService es, RejectedExecutionException cause)
Constructor of the new exception.- Parameters:
es
- Executor service, which rejected the exceptioncause
- Cause passed as a runtime exception
-
-
Method Detail
-
getExecutorServiceDisplayName
public String getExecutorServiceDisplayName()
-
getRunnableDisplayName
public String getRunnableDisplayName()
-
isFatal
public boolean isFatal()
Checks if the issue is fatal.- Returns:
- If
true
, theExecutorService
will never accept any other task
-
-