public class ErrorValue extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static ErrorValue |
DIV0 |
static byte |
ERROR_DIV_0
#DIV/0! - Division by zero
|
static byte |
ERROR_NA
#N/A - Argument or function not available
|
static byte |
ERROR_NULL
#NULL! - Intersection of two cell ranges is empty
|
static byte |
ERROR_NUM
#NUM! - Value range overflow
|
static byte |
ERROR_REF
#REF! - Illegal or deleted cell reference
|
static ErrorValue |
FORMULA |
static byte |
INVALID_FORMULA |
static byte |
INVALID_NAME
#NAME? - Wrong function or range name
|
static byte |
INVALID_VALUE
#VALUE! - Wrong type of operand
|
static ErrorValue |
NA |
static ErrorValue |
NAME |
static ErrorValue |
NULL |
static ErrorValue |
NUM |
static ErrorValue |
REF |
static ErrorValue |
VALUE |
Constructor and Description |
---|
ErrorValue(byte code) |
ErrorValue(byte code,
String message) |
Modifier and Type | Method and 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) |
public static final byte ERROR_NULL
public static final byte ERROR_DIV_0
public static final byte INVALID_VALUE
public static final byte ERROR_REF
public static final byte INVALID_NAME
public static final byte ERROR_NUM
public static final byte ERROR_NA
public static final byte INVALID_FORMULA
public static final ErrorValue NULL
public static final ErrorValue DIV0
public static final ErrorValue VALUE
public static final ErrorValue REF
public static final ErrorValue NAME
public static final ErrorValue NUM
public static final ErrorValue NA
public static final ErrorValue FORMULA
public ErrorValue(byte code)
public ErrorValue(byte code, String message)
public static ErrorValue valueOf(byte code)
public byte getCode()
public void setCode(byte code)
code
- should be one of public byte constant in this classpublic String getMessage()
public void setMessage(String message)
public String getErrorString()
public static final String getErrorString(int errorCode)
Copyright © 2020. All rights reserved.