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 anInterruptedExceptionwhere handling of the latter is not desired.InterruptedRuntimeExceptionmay be thrown either by waiting for anyRunnableto be completed, or during its execution.The propagated
InterruptedExceptionmay be of typeSourcedInterruptedException.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InterruptedRuntimeException(InterruptedException cause)Constructor attempts towrapthe givenInterruptedExceptioncauseinto aSourcedInterruptedException.InterruptedRuntimeException(String message, InterruptedException cause)Constructor attempts towrapthe givenInterruptedExceptioncauseinto aSourcedInterruptedException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterruptedExceptiongetCause()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 towrapthe givenInterruptedExceptioncauseinto aSourcedInterruptedException.- Parameters:
message- the message of this exceptioncause- the propagatedInterruptedException
-
InterruptedRuntimeException
public InterruptedRuntimeException(InterruptedException cause)
Constructor attempts towrapthe givenInterruptedExceptioncauseinto aSourcedInterruptedException.- Parameters:
cause- the propagatedInterruptedException
-
-
Method Detail
-
getCause
public InterruptedException getCause()
Returns the propagatedInterruptedException, i.e. the cause of this exception.
-
-