Package org.kiwiproject.base
Class UncheckedInterruptedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.kiwiproject.base.UncheckedInterruptedException
- All Implemented Interfaces:
Serializable
Wraps an
InterruptedException with an unchecked exception. Basically, copied Java's
UncheckedIOException, renamed it, and modified it.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance of this class.UncheckedInterruptedException(String message, InterruptedException cause) Constructs an instance of this class. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UncheckedInterruptedException
Constructs an instance of this class.- Parameters:
message- the detail message, can be nullcause- theInterruptedException- Throws:
NullPointerException- if the cause isnull
-
UncheckedInterruptedException
Constructs an instance of this class.- Parameters:
cause- theInterruptedException- Throws:
NullPointerException- if the cause isnull
-
-
Method Details
-
getCause
Returns the cause of this exception.- Overrides:
getCausein classThrowable- Returns:
- the
InterruptedExceptionwhich is the cause of this exception
-