Package org.apache.poi.ss.formula.eval
Class ErrorEval
java.lang.Object
org.apache.poi.ss.formula.eval.ErrorEval
- All Implemented Interfaces:
ValueEval
Evaluations for formula errors
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ErrorEval
static final ErrorEval
#DIV/0! - Division by zerostatic final ErrorEval
static final ErrorEval
#N/A - Argument or function not availablestatic final ErrorEval
#NAME? - Wrong function or range namestatic final ErrorEval
#NULL! - Intersection of two cell ranges is emptystatic final ErrorEval
#NUM! - Value range overflowstatic final ErrorEval
#REF! - Illegal or deleted cell referencestatic final ErrorEval
#VALUE! - Wrong type of operand -
Method Summary
-
Field Details
-
NULL_INTERSECTION
#NULL! - Intersection of two cell ranges is empty -
DIV_ZERO
#DIV/0! - Division by zero -
VALUE_INVALID
#VALUE! - Wrong type of operand -
REF_INVALID
#REF! - Illegal or deleted cell reference -
NAME_INVALID
#NAME? - Wrong function or range name -
NUM_ERROR
#NUM! - Value range overflow -
NA
#N/A - Argument or function not available -
FUNCTION_NOT_IMPLEMENTED
-
CIRCULAR_REF_ERROR
-
-
Method Details
-
valueOf
Translates an Excel internal error code into the corresponding POI ErrorEval instance- Parameters:
errorCode
- An error code listed inFormulaError
- Throws:
RuntimeException
- If an unknown errorCode is specified
-
getText
Converts error codes to text. Handles non-standard error codes OK. For debug/test purposes (and for formatting error messages).- Returns:
- the String representation of the specified Excel error code.
-
getErrorCode
public int getErrorCode() -
getErrorString
-
toString
-