Interface ErrorHandler

All Known Implementing Classes:
Demo2D, Demo3D
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ErrorHandler
Used when the renderer encounters an error. While the error handler has access to the SceneContext, it itself is connected to the life cycle of the application, and not bound to the current scene.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ErrorHandler
    Default implementation that does nothing except logging the error.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onError(SceneContext context, Exception cause)
     
  • Field Details

    • DEFAULT

      static final ErrorHandler DEFAULT
      Default implementation that does nothing except logging the error.
  • Method Details