Top Description Fields Constructors Methods
com.opencsv.exceptions

public Class CsvBadConverterException

extends CsvRuntimeException
Class Inheritance

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.
Author
Andrew Rucker Jones
Since
3.8

Field Summary

Modifier and TypeField and Description
private final Class<?>
private static final long

Constructor Summary

AccessConstructor and Description
public
CsvBadConverterException()

Default constructor, in case no further information is necessary or available.

public
CsvBadConverterException(Class<?>
The class of the converter that misbehaved
converterClass
)

Constructor for specifying the class of the offending converter.

public
CsvBadConverterException(String
Human-readable error text
message
)

Constructor with a simple text.

public
CsvBadConverterException(Class<?>
Class of the converter that misbehaved
converterClass
,
String
Human-readable error text
message
)

Constructor for setting the class of the converter and an error message.

Method Summary

Modifier and TypeMethod and Description
public Class<?>
getConverterClass()

Returns: The class of the provided custom converter

Field Detail

converterClassback to summary
private final Class<?> converterClass
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.opencsv.exceptions.CsvRuntimeException.serialVersionUID.

Constructor Detail

CsvBadConverterExceptionback to summary
public CsvBadConverterException()

Default constructor, in case no further information is necessary or available.

CsvBadConverterExceptionback to summary
public CsvBadConverterException(Class<?> converterClass)

Constructor for specifying the class of the offending converter.

Parameters
converterClass:Class<?>

The class of the converter that misbehaved

CsvBadConverterExceptionback to summary
public CsvBadConverterException(String message)

Constructor with a simple text.

Parameters
message:String

Human-readable error text

CsvBadConverterExceptionback to summary
public CsvBadConverterException(Class<?> converterClass, String message)

Constructor for setting the class of the converter and an error message.

Parameters
converterClass:Class<?>

Class of the converter that misbehaved

message:String

Human-readable error text

Method Detail

getConverterClassback to summary
public Class<?> getConverterClass()
Returns:Class<?>

The class of the provided custom converter