Package io.keikai.model
Class ErrorValue
java.lang.Object
io.keikai.model.ErrorValue
- All Implemented Interfaces:
Serializable
An error result of a evaluated formula.
- Since:
- 3.5.0
- Author:
- dennis
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ErrorValuestatic final byte#DIV/0!static final byte#N/A - Argument or function not availablestatic final byte#NULL!static final byte#NUM!static final byte#REF!static final ErrorValuestatic final bytestatic final byte#NAME?static final byte#VALUE!static final ErrorValuestatic final ErrorValuestatic final ErrorValuestatic final ErrorValuestatic final ErrorValuestatic final ErrorValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytegetCode()static final StringgetErrorString(int errorCode) voidsetCode(byte code) Set error code.voidsetMessage(String message) toString()static ErrorValuevalueOf(byte code)
-
Field Details
-
ERROR_NULL
public static final byte ERROR_NULL#NULL! - Intersection of two cell ranges is empty- See Also:
-
ERROR_DIV_0
public static final byte ERROR_DIV_0#DIV/0! - Division by zero- See Also:
-
INVALID_VALUE
public static final byte INVALID_VALUE#VALUE! - Wrong type of operand- See Also:
-
ERROR_REF
public static final byte ERROR_REF#REF! - Illegal or deleted cell reference- See Also:
-
INVALID_NAME
public static final byte INVALID_NAME#NAME? - Wrong function or range name- See Also:
-
ERROR_NUM
public static final byte ERROR_NUM#NUM! - Value range overflow- See Also:
-
ERROR_NA
public static final byte ERROR_NA#N/A - Argument or function not available- See Also:
-
INVALID_FORMULA
public static final byte INVALID_FORMULA- See Also:
-
NULL
-
DIV0
-
VALUE
-
REF
-
NAME
-
NUM
-
NA
-
FORMULA
-
-
Constructor Details
-
ErrorValue
public ErrorValue(byte code) -
ErrorValue
-
-
Method Details
-
valueOf
-
getCode
public byte getCode() -
setCode
public void setCode(byte code) Set error code.- Parameters:
code- should be one of public byte constant in this class
-
getMessage
-
setMessage
-
getErrorString
- Returns:
- might be #NULL!, #NAME?, or #NUM! etc...
-
toString
-
getErrorString
-