Package io.keikai.model
Class ErrorValue
- java.lang.Object
-
- io.keikai.model.ErrorValue
-
- All Implemented Interfaces:
Serializable
public class ErrorValue extends Object implements Serializable
An error result of a evaluated formula.- Since:
- 3.5.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ErrorValueDIV0static byteERROR_DIV_0#DIV/0! - Division by zerostatic byteERROR_NA#N/A - Argument or function not availablestatic byteERROR_NULL#NULL! - Intersection of two cell ranges is emptystatic byteERROR_NUM#NUM! - Value range overflowstatic byteERROR_REF#REF! - Illegal or deleted cell referencestatic ErrorValueFORMULAstatic byteINVALID_FORMULAstatic byteINVALID_NAME#NAME? - Wrong function or range namestatic byteINVALID_VALUE#VALUE! - Wrong type of operandstatic ErrorValueNAstatic ErrorValueNAMEstatic ErrorValueNULLstatic ErrorValueNUMstatic ErrorValueREFstatic ErrorValueVALUE
-
Constructor Summary
Constructors Constructor Description ErrorValue(byte code)ErrorValue(byte code, String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetCode()StringgetErrorString()static StringgetErrorString(int errorCode)StringgetMessage()voidsetCode(byte code)Set error code.voidsetMessage(String message)StringtoString()static ErrorValuevalueOf(byte code)
-
-
-
Field Detail
-
ERROR_NULL
public static final byte ERROR_NULL
#NULL! - Intersection of two cell ranges is empty- See Also:
- Constant Field Values
-
ERROR_DIV_0
public static final byte ERROR_DIV_0
#DIV/0! - Division by zero- See Also:
- Constant Field Values
-
INVALID_VALUE
public static final byte INVALID_VALUE
#VALUE! - Wrong type of operand- See Also:
- Constant Field Values
-
ERROR_REF
public static final byte ERROR_REF
#REF! - Illegal or deleted cell reference- See Also:
- Constant Field Values
-
INVALID_NAME
public static final byte INVALID_NAME
#NAME? - Wrong function or range name- See Also:
- Constant Field Values
-
ERROR_NUM
public static final byte ERROR_NUM
#NUM! - Value range overflow- See Also:
- Constant Field Values
-
ERROR_NA
public static final byte ERROR_NA
#N/A - Argument or function not available- See Also:
- Constant Field Values
-
INVALID_FORMULA
public static final byte INVALID_FORMULA
- See Also:
- Constant Field Values
-
NULL
public static final ErrorValue NULL
-
DIV0
public static final ErrorValue DIV0
-
VALUE
public static final ErrorValue VALUE
-
REF
public static final ErrorValue REF
-
NAME
public static final ErrorValue NAME
-
NUM
public static final ErrorValue NUM
-
NA
public static final ErrorValue NA
-
FORMULA
public static final ErrorValue FORMULA
-
-
Constructor Detail
-
ErrorValue
public ErrorValue(byte code)
-
ErrorValue
public ErrorValue(byte code, String message)
-
-
Method Detail
-
valueOf
public static ErrorValue valueOf(byte code)
-
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
public String getMessage()
-
setMessage
public void setMessage(String message)
-
getErrorString
public String getErrorString()
- Returns:
- might be #NULL!, #NAME?, or #NUM! etc...
-
getErrorString
public static final String getErrorString(int errorCode)
-
-