Package com.jogamp.opengl
Interface GLAnimatorControl.UncaughtExceptionHandler
-
- Enclosing interface:
- GLAnimatorControl
public static interface GLAnimatorControl.UncaughtExceptionHandler
Aregistered
GLAnimatorControl.UncaughtExceptionHandler
instance is invoked when ananimator
abruptlystops
due to an uncaught exception from one of itsGLAutoDrawable
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
uncaughtException(GLAnimatorControl animator, GLAutoDrawable drawable, Throwable cause)
Method invoked when the givenGLAnimatorControl
isstopped
due to the given uncaught exception happened on the givenGLAutoDrawable
.
-
-
-
Method Detail
-
uncaughtException
void uncaughtException(GLAnimatorControl animator, GLAutoDrawable drawable, Throwable cause)
Method invoked when the givenGLAnimatorControl
isstopped
due to the given uncaught exception happened on the givenGLAutoDrawable
.The animator thread can still be retrieved via
GLAnimatorControl.getThread()
.All
GLAnimatorControl
states already reflect its stopped state.After this handler method is called, the
GLAnimatorControl
is stopped.Any exception thrown by this method will be ignored.
- Parameters:
animator
- theGLAnimatorControl
drawable
- the causingGLAutoDrawable
, may benull
in caseThrowable
caused unrelated to anyGLAutoDrawable
.cause
- the uncaught exception- Since:
- 2.2
- See Also:
GLAnimatorControl.setUncaughtExceptionHandler(UncaughtExceptionHandler)
-
-