/** * Constructor * * @param s the error constant */ public ErrorConstant(String s) { error = FormulaErrorCode.getErrorCode(s); }
/** * Reads the ptg data from the array starting at the specified position * * @param data the RPN array * @param pos the current position in the array, excluding the ptg identifier * @return the number of bytes read */ public int read(byte[] data, int pos) { int code = data[pos]; error = FormulaErrorCode.getErrorCode(code); return 1; }
/** * Constructor * * @param s the error constant */ public ErrorConstant(String s) { error = FormulaErrorCode.getErrorCode(s); }
/** * Reads the ptg data from the array starting at the specified position * * @param data the RPN array * @param pos the current position in the array, excluding the ptg identifier * @return the number of bytes read */ public int read(byte[] data, int pos) { int code = data[pos]; error = FormulaErrorCode.getErrorCode(code); return 1; }
/** * Returns the numerical value as a string * * @return The numerical value of the formula as a string */ public String getContents() { if (error == null) { error = FormulaErrorCode.getErrorCode(errorCode); } return error != FormulaErrorCode.UNKNOWN ? error.getDescription() : "ERROR " + errorCode; }
/** * Returns the numerical value as a string * * @return The numerical value of the formula as a string */ public String getContents() { if (error == null) { error = FormulaErrorCode.getErrorCode(errorCode); } return error != FormulaErrorCode.UNKNOWN ? error.getDescription() : "ERROR " + errorCode; }
/** * Returns the numerical value as a string * * @return The numerical value of the formula as a string */ public String getContents() { if (error == null) { error = FormulaErrorCode.getErrorCode(errorCode); } return error != FormulaErrorCode.UNKNOWN ? error.getDescription() : "ERROR " + errorCode; }
/** * Returns the numerical value as a string * * @return The numerical value of the formula as a string */ public String getContents() { if (error == null) { error = FormulaErrorCode.getErrorCode(errorCode); } return error != FormulaErrorCode.UNKNOWN ? error.getDescription() : "ERROR " + errorCode; }