summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/JogampRuntimeException.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-09-12 17:13:52 +0200
committerSven Gothel <[email protected]>2015-09-12 17:13:52 +0200
commit47495cd2a228534578731346c8baf2b190bcd241 (patch)
tree1900f214d2011d480ede63bf64d0c0de62904a5e /src/java/com/jogamp/common/JogampRuntimeException.java
parentb94d0c4e2ac4b29ffe6bb832d37b83c6d32497fe (diff)
Bug 1213: Expose InterruptSource, SourcedInterruptedException and InterruptedRuntimeException
- InterruptSource interface declares methods to retrieve the source of a Thread.interrupt() call. - InterruptSource.Thread implements InterruptSource, i.e. allows code running within such thread to learn about the interrupt source (stack trace). - SourcedInterruptedException is a InterruptedException specialization which may include the source of the causing Thread.interrupt() call. - InterruptedRuntimeException An unchecked RuntimeException propagating an InterruptedException where handling of the latter is not desired. The causing InterruptedException may be of type SourcedInterruptedException, hence a detailed stack trace analysis might be possible.
Diffstat (limited to 'src/java/com/jogamp/common/JogampRuntimeException.java')
-rw-r--r--src/java/com/jogamp/common/JogampRuntimeException.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/com/jogamp/common/JogampRuntimeException.java b/src/java/com/jogamp/common/JogampRuntimeException.java
index d33d498..524bb93 100644
--- a/src/java/com/jogamp/common/JogampRuntimeException.java
+++ b/src/java/com/jogamp/common/JogampRuntimeException.java
@@ -28,9 +28,10 @@
package com.jogamp.common;
-/** A generic exception for Jogamp errors used throughout the binding
- as a substitute for {@link RuntimeException}. */
-
+/**
+ * A generic <i>unchecked exception</i> for Jogamp errors used throughout the binding
+ * as a substitute for {@link RuntimeException}.
+ */
@SuppressWarnings("serial")
public class JogampRuntimeException extends RuntimeException {
/** Constructs a JogampRuntimeException object. */