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 ErrorValue
DIV0
static byte
ERROR_DIV_0
#DIV/0! - Division by zerostatic byte
ERROR_NA
#N/A - Argument or function not availablestatic byte
ERROR_NULL
#NULL! - Intersection of two cell ranges is emptystatic byte
ERROR_NUM
#NUM! - Value range overflowstatic byte
ERROR_REF
#REF! - Illegal or deleted cell referencestatic ErrorValue
FORMULA
static byte
INVALID_FORMULA
static byte
INVALID_NAME
#NAME? - Wrong function or range namestatic byte
INVALID_VALUE
#VALUE! - Wrong type of operandstatic ErrorValue
NA
static ErrorValue
NAME
static ErrorValue
NULL
static ErrorValue
NUM
static ErrorValue
REF
static ErrorValue
VALUE
-
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 byte
getCode()
String
getErrorString()
static String
getErrorString(int errorCode)
String
getMessage()
void
setCode(byte code)
Set error code.void
setMessage(String message)
String
toString()
static ErrorValue
valueOf(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)
-
-