public class CalculationException extends Exception
| Modifier and Type | Field and Description |
|---|---|
static byte |
CIR_ERR
Custom circular exception error, internally stores as a #VALUE
|
static byte |
DIV0
Excel #DIV/0! error.
|
static byte |
NA
Excel #N/A error.
|
static byte |
NAME
Excel #NAME? error.
|
static byte |
NULL
Excel #NULL! error.
|
static byte |
NUM
Excel #NUM! error.
|
static byte |
REF
Excel #REF! error.
|
static byte |
VALUE
Excel #VALUE! error.
|
| Constructor and Description |
|---|
CalculationException(byte error)
Creates a new CaluculationException.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getErrorCode()
Gets the BIFF8 error code for this error.
|
static byte |
getErrorCode(String error)
static version, takes String error code and returns the correct error code
|
String |
getMessage()
Gets a human-readable message describing this error.
|
String |
getName()
Gets the string name of this error.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic static final byte NULL
public static final byte DIV0
public static final byte VALUE
public static final byte REF
public static final byte NAME
public static final byte NUM
public static final byte NA
public static final byte CIR_ERR
public CalculationException(byte error)
error - the error code. must be one of the defined error constants.public byte getErrorCode()
public static byte getErrorCode(String error)
error - Stringpublic String getMessage()
getMessage in class Throwablepublic String getName()
Copyright © 2002–2019 Starter Inc.. All rights reserved.