static FormulaException() { unrecognizedToken = new FormulaMessage("Unrecognized token"); unrecognizedFunction = new FormulaMessage("Unrecognized function"); biff8Supported = new FormulaMessage("Only biff8 formulas are supported"); lexicalError = new FormulaMessage("Lexical error: "); incorrectArguments = new FormulaMessage("Incorrect arguments supplied to function"); sheetRefNotFound = new FormulaMessage("Could not find sheet"); cellNameNotFound = new FormulaMessage("Could not find named cell"); }
/** * Constructs this exception with the specified message * * @param m the message */ public FormulaException(FormulaMessage m) : base(m.getMessage()) { }
/** * Constructs this exception with the specified message * * @param m the message * @param val the value */ public FormulaException(FormulaMessage m, string val) : base(m.getMessage() + " " + val) { }
/// <summary> Constructs this exception with the specified message /// /// </summary> /// <param name="m">the message /// </param> public FormulaException(FormulaMessage m, int val) : base(m.message + " " + val) { }
/// <summary> Constructs this exception with the specified message /// /// </summary> /// <param name="m">the message /// </param> public FormulaException(FormulaMessage m) : base(m.message) { }
/** * Constructs this exception with the specified message * * @param m the message * @param val the value */ public FormulaException(FormulaMessage m,string val) : base(m.getMessage() + " " + val) { }