Package com.opencsv.exceptions
Class CsvBadConverterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.opencsv.exceptions.CsvRuntimeException
-
- com.opencsv.exceptions.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
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<?>
converterClass
private static long
serialVersionUID
-
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()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
converterClass
private final java.lang.Class<?> converterClass
-
-
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 misbehavedmessage
- Human-readable error text
-
-