1 16 17 package org.apache.poi.hpsf; 18 19 import org.apache.poi.util.HexDump; 20 21 30 public class IllegalVariantTypeException extends VariantTypeException 31 { 32 33 40 public IllegalVariantTypeException(final long variantType, 41 final Object value, final String msg) 42 { 43 super(variantType, value, msg); 44 } 45 46 52 public IllegalVariantTypeException(final long variantType, 53 final Object value) 54 { 55 this(variantType, value, "The variant type " + variantType + " (" + 56 Variant.getVariantName(variantType) + ", " + 57 HexDump.toHex(variantType) + ") is illegal in this context."); 58 } 59 60 } 61 | Popular Tags |