![JAR search and dependency download from the Maven repository](/logo.png)
com.opencsv.exceptions.CsvRecursionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opencsv Show documentation
Show all versions of opencsv Show documentation
A simple library for reading and writing CSV in Java
The newest version!
package com.opencsv.exceptions;
/**
* This exception is thrown on initiation of field mapping if
* {@link com.opencsv.bean.CsvRecurse} has been improperly used.
*
* @author Andrew Rucker Jones
* @since 5.0
*/
public class CsvRecursionException extends CsvRuntimeException {
private static final long serialVersionUID = 1L;
private final Class> offendingType;
/**
* Constructor for an error message and the type that caused a recursion
* problem.
*
* @param message A human-readable error message
* @param offendingType The type that is misconfigured and caused the error
*/
public CsvRecursionException(String message, Class> offendingType) {
super(message);
this.offendingType = offendingType;
}
/**
* @return The type that is misconfigured and caused the error
*/
public Class> getOffendingType() {
return offendingType;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy