Package com.luciad.fusion.engine.raster
Interface ILfnRasterSessionHandler
- All Known Implementing Classes:
TLfnFailFastRasterSessionHandler
public interface ILfnRasterSessionHandler
Handler for non-fatal errors that occur during a raster fusion session.
The handler receives calls with the error that occurred (any kind of exception) and the context in which it occurred (asset, tile).
The handler can choose to continue the session or abort.
See also ALfnCoverageMetadata.isIgnoreNonFatalFailures() to specify such behavior.
- Since:
- 2012.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDescribes the context in which a failure occurred. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleFailure(ILfnRasterSessionHandler.FailureContext aContext, Exception aError) Notifies the handler of a failure and determines whether to abort or continue the session.
-
Method Details
-
handleFailure
Notifies the handler of a failure and determines whether to abort or continue the session. When continuing the session, the tile will be retried and the offending asset will be ignored.Note that the fusion process may continue for a while, even if you return
false. It is better to useALfnCoverageMetadata.isIgnoreNonFatalFailures()to enforce immediate abort.- Parameters:
aContext- the context where the failure occurred, nevernullaError- the error causing the failure- Returns:
trueto ignore the failure and continue the session,falseto abort the fusion session.
-