Class CsvBadConverterException

  • All Implemented Interfaces:
    java.io.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
    Author:
    Andrew Rucker Jones
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CsvBadConverterException()
      Default constructor, in case no further information is necessary or available.
      CsvBadConverterException​(java.lang.Class<?> converterClass)
      Constructor for specifying the class of the offending converter.
      CsvBadConverterException​(java.lang.Class<?> converterClass, java.lang.String message)
      Constructor for setting the class of the converter and an error message.
      CsvBadConverterException​(java.lang.String message)
      Constructor with a simple text.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<?> getConverterClass()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CsvBadConverterException

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

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

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

        public CsvBadConverterException​(java.lang.Class<?> converterClass,
                                        java.lang.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 Detail

      • getConverterClass

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