spreadsheet
typeScript/javascript spreadsheet parser, with formulas.
git clone https://git.vogt.world/spreadsheet.git
Log | Files | README.md
← All files
name: dist/Errors.d.ts
-rw-r--r--
2067
 1declare let NULL_ERROR: string;
 2declare let DIV_ZERO_ERROR: string;
 3declare let VALUE_ERROR: string;
 4declare let REF_ERROR: string;
 5declare let NAME_ERROR: string;
 6declare let NUM_ERROR: string;
 7declare let NA_ERROR: string;
 8declare let PARSE_ERROR: string;
 9/**
10 * Execution or parsing produced a null value, or intersection of ranges produced zero cells.
11 */
12declare class NullError extends Error {
13    constructor(message: string);
14}
15/**
16 * Attempt to divide by zero, including division by an empty cell.
17 */
18declare class DivZeroError extends Error {
19    constructor(message: string);
20}
21/**
22 * Parameter is wrong type, or value is incompatible, or cannot be parsed, converted, or manipulated.
23 */
24declare class ValueError extends Error {
25    constructor(message: string);
26}
27/**
28 * Reference to invalid cell, range, or empty range.
29 */
30declare class RefError extends Error {
31    constructor(message: string);
32}
33/**
34 * Unrecognized/deleted name.
35 */
36declare class NameError extends Error {
37    constructor(message: string);
38}
39/**
40 * Failed to meet domain constraints (e.g., input number too high or too low).
41 */
42declare class NumError extends Error {
43    constructor(message: string);
44}
45/**
46 * Lookup functions which failed and NA() return this value.
47 */
48declare class NAError extends Error {
49    constructor(message: string);
50}
51/**
52 * Input could not be parsed.
53 */
54declare class ParseError extends Error {
55    constructor(message: string);
56}
57/**
58 * Constructs an error by error name.
59 * @param {string} name - Name of error. If not one of DIV_ZERO_ERROR, NULL_ERROR, VALUE_ERROR, REF_ERROR, NAME_ERROR,
60 * NUM_ERROR,NA_ERROR, or PARSE_ERROR, will default to ParseError.
61 * @param {string} msg - Message for error, will default to empty string.
62 * @returns {Error}
63 */
64declare function constructErrorByName(name: string, msg?: string): Error;
65export { DIV_ZERO_ERROR, NULL_ERROR, VALUE_ERROR, REF_ERROR, NAME_ERROR, NUM_ERROR, NA_ERROR, PARSE_ERROR, DivZeroError, NullError, ValueError, RefError, NameError, NumError, NAError, ParseError, constructErrorByName };