All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.supercsv.ext.util.ConversionException Maven / Gradle / Ivy

Go to download

CSVのJavaライブラリであるSuperCSVに、アノテーション機能を追加したライブラリです。

There is a newer version: 2.3
Show newest version
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