Package com.luciad.view
Class TLcdLoggingPaintExceptionHandler
java.lang.Object
com.luciad.view.TLcdLoggingPaintExceptionHandler
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionCreates an new paint exception handler that logs an error when an exception is encountered. -
Method Summary
Modifier and TypeMethodDescriptionboolean
handlePaintException
(Exception aException, ILcdLayer aLayer) Called when an exception is encountered during painting.
-
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
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 interfaceILcdPaintExceptionHandler
- 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.
-