public interface ILcdS57InvalidCellExceptionHandler
Modifier and Type | Method and Description |
---|---|
default void |
handleCellWarnings(String aCellSourceName,
Collection<Exception> aWarnings)
This method is called whenever warnings are raised during decoding of an individual cell.
|
void |
handleInvalidCellException(String aCellSourceName,
IOException aException)
This method is called whenever an exception is raised during the decoding
of an individual cell.
|
void handleInvalidCellException(String aCellSourceName, IOException aException) throws IOException
IgnoreInvalidCells
flag is set on the
TLcdS57ModelDecoder
, an exception raised in this method will
be caught in the catalogue model decoder and it will try to decode as much
cells as possible, if not, the exception is not caught and the decoding
process will be interrupted.aCellSourceName
- the source name of the cell that could not be
decoded.aException
- the exception that was thrown during the decoding of
the cell.IOException
- if the exception that occurred in the cell is severe
enough to inform (and possibly interrupt, depending on
the ignoreInvalidCells flag) the catalogue model
decoder.TLcdS57CatalogueModelDecoder.setInvalidCellExceptionHandler(ILcdS57InvalidCellExceptionHandler)
,
TLcdS57CatalogueModelDecoder.setIgnoreInvalidCells(boolean)
default void handleCellWarnings(String aCellSourceName, Collection<Exception> aWarnings) throws IOException
SSE_015
or SSE_020
).
Be default, this method logs a warning message.aCellSourceName
- the source name of the cell that triggered the warnings.aWarnings
- the warning exceptions.IOException
- if the warnings that occurred in the cell are severe
enough to inform (and possibly interrupt, depending on
the ignoreInvalidCells flag) the catalogue model
decoder.TLcdS57CatalogueModelDecoder.setInvalidCellExceptionHandler(ILcdS57InvalidCellExceptionHandler)
,
TLcdS57CatalogueModelDecoder.setIgnoreInvalidCells(boolean)