@graphty/graphty-element / session / LoadError
Interface: LoadError ​
Defined in: graphty-element/src/data/report.ts:97
One problem a load met, as facts rather than words: a reader words it from code and params.
code is the kind of problem. A reader's own codes are "parse-error" (the file breaks off or is not well formed here; what came before is kept), "validation-error", "missing-value", "unsupported", "precision", "coercion" and "merged"; "refused-row" is a record the graph would not store (no usable node id, or edge endpoints it cannot hold). Codes may be added in a minor release.
Properties ​
code ​
readonlycode:string
Defined in: graphty-element/src/data/report.ts:99
The kind of problem.
field? ​
readonlyoptionalfield?:string
Defined in: graphty-element/src/data/report.ts:109
The field or column concerned, when there is one.
line? ​
readonlyoptionalline?:number
Defined in: graphty-element/src/data/report.ts:107
The line of the file (or the row) the problem is on, when the reader knows it.
params ​
readonlyparams:Readonly<Record<string,unknown>>
Defined in: graphty-element/src/data/report.ts:105
The facts the code needs: for a graph file, issue (graph-io's own code, such as E_XML_SYNTAX) and element (the element or key concerned); for a refused row, rowsAre ("nodes" or "edges").