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:
Serializable
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor, in case no further information is necessary or available.CsvBadConverterException
(Class<?> converterClass) Constructor for specifying the class of the offending converter.CsvBadConverterException
(Class<?> converterClass, String message) Constructor for setting the class of the converter and an error message.CsvBadConverterException
(String message) Constructor with a simple text. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
converterClass
-
-
Constructor Details
-
CsvBadConverterException
public CsvBadConverterException()Default constructor, in case no further information is necessary or available. -
CsvBadConverterException
Constructor for specifying the class of the offending converter.- Parameters:
converterClass
- The class of the converter that misbehaved
-
CsvBadConverterException
Constructor with a simple text.- Parameters:
message
- Human-readable error text
-
CsvBadConverterException
Constructor for setting the class of the converter and an error message.- Parameters:
converterClass
- Class of the converter that misbehavedmessage
- Human-readable error text
-
-
Method Details
-
getConverterClass
- Returns:
- The class of the provided custom converter
-