Class InterruptedRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.tentackle.common.InterruptedRuntimeException
- All Implemented Interfaces:
Serializable
Runtime exception to signal that the current thread was interrupted.
Usually wraps a checked
Usually wraps a checked
InterruptedException, but any cause is accepted.
Each constructor sets the interrupted flag of the current thread, so that the interrupt is not swallowed.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new interrupted runtime exception withnullas its detail message and sets the interrupted flag.InterruptedRuntimeException(String message, Throwable cause) Constructs a new interrupted runtime exception with the specified detail message and cause.InterruptedRuntimeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs a new interrupted runtime exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.Constructs a new interrupted runtime exception with the specified cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InterruptedRuntimeException
public InterruptedRuntimeException()Constructs a new interrupted runtime exception withnullas its detail message and sets the interrupted flag. -
InterruptedRuntimeException
-
InterruptedRuntimeException
Constructs a new interrupted runtime exception with the specified cause.- Parameters:
cause- the cause (null allowed)
-
InterruptedRuntimeException
public InterruptedRuntimeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs a new interrupted runtime exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.- Parameters:
message- the detail messagecause- the cause (null allowed)enableSuppression- whether suppression is enabled or disabledwritableStackTrace- whether the stack trace should be writable
-