What the library was doing when this failed — the dataset, account or URL involved.
OptionalstatusHTTP status for this failure, when there is one.
Adds to TriplyDbJsError.context, keeping what is already there.
Records what this error came from, so the underlying failure is not lost.
OptionaljsonResult: anyReplaces the message, scrubbing any token out of the replacement. Returns this error.
Sets TriplyDbJsError.statusCode. Returns this error.
The error thrown by every failing call in this library.
Remarks
Catch it to inspect TriplyDbJsError.statusCode, which carries the HTTP status the API responded with. Not constructed by callers.
Every error this library throws is one of these, IncompatibleError included, so a single
instanceof TriplyDbJsErroris enough to catch them all.