Application Binary Interface
checkResultErrors
Returns all errors found in a Result.
Since certain errors encountered when creating a Result do not impact the ability to continue parsing data, they are deferred until they are actually accessed. Hence a faulty string in an Event that is never used does not impact the program flow.
However, sometimes it may be useful to access, identify or validate correctness of a Result.
Parameters
Parameter | Type | Description |
---|---|---|
result | Result | The Result to check for errors. |
Returns
{
"error"
: Error
;
"path"
: (string
| number
)[];
}[]
An array of objects with the path to the error and the error itself.
Source
Was this page helpful?