public interface ErrorHandler
Action to perform when errors occurred while reading or writing some tiles in an image. The most typical actions are throwing an exception or logging a warning.
Defined in the
Nested Class SummaryModifier and TypeInterfaceDescription
static classInformation about errors that occurred while reading or writing tiles in an image.
THROWstatic final ErrorHandler THROWExceptions are wrapped in an
ImagingOpExceptionand thrown. In such case, no result is available. This is the default handler.
LOGstatic final ErrorHandler LOGExceptions are wrapped in a
LogRecordand logged, usually at
Level.WARNING. Only one log record is created for all tiles that failed for the same operation on the same image. A partial result may be available.
(ErrorHandler.Report details)Invoked after errors occurred in one or many tiles. This method may be invoked an arbitrary time after the error occurred, and may aggregate errors that occurred in more than one tile.
Multi-threadingIf the image processing was splitted between many worker threads, this method may be invoked from any of those threads. However the invocation should happen after all threads terminated, either successfully or with an error reported in
details- information about the first error. If more than one error occurred, the other errors are reported as suppressed exceptions.