Class TLcdLoggingPaintExceptionHandler

java.lang.Object
com.luciad.view.TLcdLoggingPaintExceptionHandler
All Implemented Interfaces:
ILcdPaintExceptionHandler

public class TLcdLoggingPaintExceptionHandler extends Object implements ILcdPaintExceptionHandler
This paint exception handler logs an error when an exception is encountered. After the exception is handled, painting is resumed.
Since:
10.0
  • Constructor Details

    • TLcdLoggingPaintExceptionHandler

      public TLcdLoggingPaintExceptionHandler()
      Creates an new paint exception handler that logs an error when an exception is encountered. This paint exception handler also makes sure that painting is resumed after the exception is handled.
  • Method Details

    • handlePaintException

      public boolean handlePaintException(Exception aException, ILcdLayer aLayer)
      Description copied from interface: ILcdPaintExceptionHandler
      Called when an exception is encountered during painting. Implementations can for example log a warning when an exception is encountered, or they can throw a new exception.
      Specified by:
      handlePaintException in interface ILcdPaintExceptionHandler
      Parameters:
      aException - the exception that occurred.
      aLayer - the layer that is involved, or null if no layer was involved.
      Returns:
      true if painting should resume, false if painting should stop.