Package com.jogamp.opengl
Interface GLAnimatorControl.UncaughtExceptionHandler
- Enclosing interface:
- GLAnimatorControl
public static interface GLAnimatorControl.UncaughtExceptionHandler
A
registered
GLAnimatorControl.UncaughtExceptionHandler
instance is invoked when an animator
abruptly stops
due to an uncaught exception from one of its GLAutoDrawable
s.-
Method Summary
Modifier and TypeMethodDescriptionvoid
uncaughtException
(GLAnimatorControl animator, GLAutoDrawable drawable, Throwable cause) Method invoked when the givenGLAnimatorControl
isstopped
due to the given uncaught exception happened on the givenGLAutoDrawable
.
-
Method Details
-
uncaughtException
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:
-