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
public class UncheckedInterruptedException extends RuntimeException
Wraps anInterruptedException
with an unchecked exception. Basically, copied Java'sUncheckedIOException
, renamed it, and modified it.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UncheckedInterruptedException(InterruptedException cause)
Constructs an instance of this class.UncheckedInterruptedException(String message, InterruptedException cause)
Constructs an instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterruptedException
getCause()
Returns the cause of this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UncheckedInterruptedException
public UncheckedInterruptedException(String message, InterruptedException cause)
Constructs an instance of this class.- Parameters:
message
- the detail message, can be nullcause
- theInterruptedException
- Throws:
NullPointerException
- if the cause isnull
-
UncheckedInterruptedException
public UncheckedInterruptedException(InterruptedException cause)
Constructs an instance of this class.- Parameters:
cause
- theInterruptedException
- Throws:
NullPointerException
- if the cause isnull
-
-
Method Detail
-
getCause
public InterruptedException getCause()
Returns the cause of this exception.- Overrides:
getCause
in classThrowable
- Returns:
- the
InterruptedException
which is the cause of this exception
-
-