Package com.jogamp.common.util
Class InterruptedRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.jogamp.common.JogampRuntimeException
-
- com.jogamp.common.util.InterruptedRuntimeException
-
- All Implemented Interfaces:
Serializable
public class InterruptedRuntimeException extends JogampRuntimeException
Unchecked exception propagating anInterruptedException
where handling of the latter is not desired.InterruptedRuntimeException
may be thrown either by waiting for anyRunnable
to be completed, or during its execution.The propagated
InterruptedException
may be of typeSourcedInterruptedException
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InterruptedRuntimeException(InterruptedException cause)
Constructor attempts towrap
the givenInterruptedException
cause
into aSourcedInterruptedException
.InterruptedRuntimeException(String message, InterruptedException cause)
Constructor attempts towrap
the givenInterruptedException
cause
into aSourcedInterruptedException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterruptedException
getCause()
Returns the propagatedInterruptedException
, i.e.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InterruptedRuntimeException
public InterruptedRuntimeException(String message, InterruptedException cause)
Constructor attempts towrap
the givenInterruptedException
cause
into aSourcedInterruptedException
.- Parameters:
message
- the message of this exceptioncause
- the propagatedInterruptedException
-
InterruptedRuntimeException
public InterruptedRuntimeException(InterruptedException cause)
Constructor attempts towrap
the givenInterruptedException
cause
into aSourcedInterruptedException
.- Parameters:
cause
- the propagatedInterruptedException
-
-
Method Detail
-
getCause
public InterruptedException getCause()
Returns the propagatedInterruptedException
, i.e. the cause of this exception.
-
-