first commit
This commit is contained in:
39
hrmsEjb/jxl/biff/formula/FormulaException.java
Normal file
39
hrmsEjb/jxl/biff/formula/FormulaException.java
Normal file
@@ -0,0 +1,39 @@
|
||||
package jxl.biff.formula;
|
||||
|
||||
import jxl.JXLException;
|
||||
|
||||
public class FormulaException extends JXLException {
|
||||
private static class FormulaMessage {
|
||||
public String message;
|
||||
|
||||
FormulaMessage(String m) {
|
||||
this.message = m;
|
||||
}
|
||||
}
|
||||
|
||||
static FormulaMessage unrecognizedToken = new FormulaMessage("Unrecognized token");
|
||||
|
||||
static FormulaMessage unrecognizedFunction = new FormulaMessage("Unrecognized function");
|
||||
|
||||
public static FormulaMessage biff8Supported = new FormulaMessage("Only biff8 formulas are supported");
|
||||
|
||||
static FormulaMessage lexicalError = new FormulaMessage("Lexical error: ");
|
||||
|
||||
static FormulaMessage incorrectArguments = new FormulaMessage("Incorrect arguments supplied to function");
|
||||
|
||||
static FormulaMessage sheetRefNotFound = new FormulaMessage("Could not find sheet");
|
||||
|
||||
static FormulaMessage cellNameNotFound = new FormulaMessage("Could not find named cell");
|
||||
|
||||
public FormulaException(FormulaMessage m) {
|
||||
super(m.message);
|
||||
}
|
||||
|
||||
public FormulaException(FormulaMessage m, int val) {
|
||||
super(m.message + " " + val);
|
||||
}
|
||||
|
||||
public FormulaException(FormulaMessage m, String val) {
|
||||
super(m.message + " " + val);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user