Class CellError
java.lang.Object
com.codename1.spreadsheet.CellError
An error a cell holds instead of a value, such as #DIV/0!. A formula that reads a cell
in error answers that error, which is how errors travel through a sheet; nothing is thrown.
There is one instance per error, so two errors can be compared with ==.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CellErrorA formula that depends on its own result.static final CellErrorDivision by zero.static final CellErrorA value that is not available, what a failed lookup answers.static final CellErrorA name or a function that is not known.static final CellErrorTwo ranges that were expected to intersect and do not.static final CellErrorA number that is out of the range a function accepts or can answer.static final CellErrorA reference to cells that no longer exist.static final CellErrorA value of the wrong type, such as text where a number is needed. -
Method Summary
-
Field Details
-
DIV0
Division by zero. -
NA
A value that is not available, what a failed lookup answers. -
NAME
A name or a function that is not known. -
NULL
Two ranges that were expected to intersect and do not. -
NUM
A number that is out of the range a function accepts or can answer. -
REF
A reference to cells that no longer exist. -
VALUE
A value of the wrong type, such as text where a number is needed. -
CIRCULAR
A formula that depends on its own result. Spreadsheet files have no such value: XLSX writes it as#REF!, OpenDocument as LibreOffice'sErr:522, and CSV as#CIRC!.
-
-
Method Details
-
valueOf
-
getType
public int getType()The number the
ERROR.TYPEfunction answers for this error.Returns
a number from 1 to 7
-
toString
-