![JAR search and dependency download from the Maven repository](/logo.png)
org.supercsv.ext.util.ConversionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of super-csv-annotation Show documentation
Show all versions of super-csv-annotation Show documentation
CSVのJavaライブラリであるSuperCSVに、アノテーション機能を追加したライブラリです。
package org.supercsv.ext.util;
/**
* 値の変換に失敗した際にスローされる例外です。
*
* @since 1.2
* @author T.TSUCHIE
*
*/
public class ConversionException extends Exception {
/** serialVersionUID */
private static final long serialVersionUID = 7389770363413465673L;
private final Object fromValue;
private final Class> toType;
public ConversionException(final Object fromValue, final Class> toType, final Throwable e) {
super(String.format("fail convert from '%s' to type '%s'", fromValue.toString(), toType.getCanonicalName()), e);
this.fromValue = fromValue;
this.toType = toType;
}
public Object getFromValue() {
return fromValue;
}
public Class> getToType() {
return toType;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy