Throw exception rather than returning NO IDEA SHARED FORMULA

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437265 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason Height 2006-08-27 01:04:53 +00:00
parent 6e9b265462
commit b0336924a4

View File

@ -18,6 +18,7 @@
package org.apache.poi.hssf.record.formula;
import org.apache.poi.hssf.model.Workbook;
import org.apache.poi.hssf.record.RecordFormatException;
import org.apache.poi.hssf.record.RecordInputStream;
import org.apache.poi.util.LittleEndian;
@ -73,7 +74,7 @@ public class ExpPtg
public String toFormulaString(Workbook book)
{
return "NO IDEA SHARED FORMULA EXP PTG";
throw new RecordFormatException("Coding Error: Expected ExpPtg to be converted from Shared to Non-Shared Formula");
}
public String toString()