f7
f7 is a spreadsheet formula execution library
git clone https://git.vogt.world/f7.git
Log | Files | README.md | LICENSE.md
← All files
name: src/main/js/models/nodes/ErrorNode.ts
-rw-r--r--
507
 1import { F7Exception } from "../../errors/F7Exception";
 2import { Node } from "./Node";
 3import { NodeType } from "./NodeType";
 4
 5/**
 6 * Error node is a literal representation of an F7 error. For now, this wraps an {@link F7Exception}.
 7 */
 8export class ErrorNode extends Object implements Node {
 9  readonly type: NodeType = NodeType.Error;
10  readonly value: F7Exception;
11
12  constructor(value: F7Exception) {
13    super();
14    this.value = value;
15  }
16
17  toString() {
18    return this.value.name.toString();
19  }
20}