Class CsvBadConverterException

All Implemented Interfaces:
Serializable

public class CsvBadConverterException extends CsvRuntimeException
This exception indicates that the converter did not behave as expected in some way. Typically this is for custom converters and means it could not be instantiated, but this exception is also used for meaningless values to annotations associated with opencsv, for example, since this renders the converter opencsv provides inoperative.
Since:
3.8
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • converterClass

      private final Class<?> converterClass
  • Constructor Details

    • CsvBadConverterException

      public CsvBadConverterException()
      Default constructor, in case no further information is necessary or available.
    • CsvBadConverterException

      public CsvBadConverterException(Class<?> converterClass)
      Constructor for specifying the class of the offending converter.
      Parameters:
      converterClass - The class of the converter that misbehaved
    • CsvBadConverterException

      public CsvBadConverterException(String message)
      Constructor with a simple text.
      Parameters:
      message - Human-readable error text
    • CsvBadConverterException

      public CsvBadConverterException(Class<?> converterClass, String message)
      Constructor for setting the class of the converter and an error message.
      Parameters:
      converterClass - Class of the converter that misbehaved
      message - Human-readable error text
  • Method Details

    • getConverterClass

      public Class<?> getConverterClass()
      Returns:
      The class of the provided custom converter