Top Description Constructors Methods
com.jogamp.common.util

public Class InterruptedRuntimeException

extends JogampRuntimeException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
com.jogamp.common.JogampRuntimeException

Unchecked exception propagating an InterruptedException where handling of the latter is not desired.

InterruptedRuntimeException may be thrown either by waiting for any Runnable to be completed, or during its execution.

The propagated InterruptedException may be of type SourcedInterruptedException.

Constructor Summary

AccessConstructor and Description
public
InterruptedRuntimeException(final String
the message of this exception
message
,
final InterruptedException
the propagated InterruptedException
cause
)

Constructor attempts to wrap the given InterruptedException cause into a SourcedInterruptedException.

public
InterruptedRuntimeException(final InterruptedException
the propagated InterruptedException
cause
)

Constructor attempts to wrap the given InterruptedException cause into a SourcedInterruptedException.

Method Summary

Modifier and TypeMethod and Description
public InterruptedException
getCause()

Overrides java.lang.Throwable.getCause.

Returns the propagated InterruptedException, i.e. the cause of this exception.

Constructor Detail

InterruptedRuntimeExceptionback to summary
public InterruptedRuntimeException(final String message, final InterruptedException cause)

Constructor attempts to wrap the given InterruptedException cause into a SourcedInterruptedException.

Parameters
message:String

the message of this exception

cause:InterruptedException

the propagated InterruptedException

InterruptedRuntimeExceptionback to summary
public InterruptedRuntimeException(final InterruptedException cause)

Constructor attempts to wrap the given InterruptedException cause into a SourcedInterruptedException.

Parameters
cause:InterruptedException

the propagated InterruptedException

Method Detail

getCauseback to summary
public InterruptedException getCause()

Overrides java.lang.Throwable.getCause.

Doc from java.lang.Throwable.getCause.

Returns the propagated InterruptedException, i.e. the cause of this exception.

Returns the cause of this throwable or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this throwable to get thrown.)

This implementation returns the cause that was supplied via one of the constructors requiring a Throwable, or that was set after creation with the initCause(Throwable) method. While it is typically unnecessary to override this method, a subclass can override it to return a cause set by some other means. This is appropriate for a "legacy chained throwable" that predates the addition of chained exceptions to Throwable. Note that it is not necessary to override any of the PrintStackTrace methods, all of which invoke the getCause method to determine the cause of a throwable.

Returns:InterruptedException

the cause of this throwable or null if the cause is nonexistent or unknown.

Annotations
@Override