public class TLfnFailFastRasterSessionHandler extends Object implements ILfnRasterSessionHandler
ILfnRasterSessionHandler.FailureContext
Constructor and Description |
---|
TLfnFailFastRasterSessionHandler() |
TLfnFailFastRasterSessionHandler(ILcdLogger aLogger) |
Modifier and Type | Method and Description |
---|---|
boolean |
handleFailure(ILfnRasterSessionHandler.FailureContext aContext,
Exception aFailure)
Notifies the handler of a failure and determines whether to abort or continue the session.
|
public TLfnFailFastRasterSessionHandler()
public TLfnFailFastRasterSessionHandler(ILcdLogger aLogger)
public boolean handleFailure(ILfnRasterSessionHandler.FailureContext aContext, Exception aFailure)
ILfnRasterSessionHandler
Note that the fusion process may continue for a while, even if you return false
.
It is better to use ALfnCoverageMetadata.isIgnoreNonFatalFailures()
to enforce
immediate abort.
handleFailure
in interface ILfnRasterSessionHandler
aContext
- the context where the failure occurred, never null
aFailure
- the error causing the failuretrue
to ignore the failure and continue the session,
false
to abort the fusion session.