| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CsvException | handleException(CsvException e)
Implements com. Determines how opencsv will handle exceptions that crop up during bean creation or writing. |
| ExceptionHandlerIgnore | back to summary |
|---|---|
| public ExceptionHandlerIgnore() Default Constructor. | |
| handleException | back to summary |
|---|---|
| public CsvException handleException(CsvException e) Implements com. Doc from com. Determines how opencsv will handle exceptions that crop up during bean creation or writing. There are three ways of dealing with an exception:
Please be cautioned: Due to the multi-threaded nature of opencsv's conversion routines, there is no guarantee that the exception thrown, if your chosen error handler throws exceptions, is the error in the input that would have caused the exception to be thrown if the input were processed in strict sequential order. That is, if there are four errors in the input and your error handler queues the first three but throws the fourth, the exception thrown might relate to any of the four errors in the input. If your exception handler queues a certain number of exceptions
before throwing one, opencsv makes a best-faith effort to make sure all
of the exceptions marked for queueing are actually available via
This method must be thread-safe.
| |