PartialError #
Inherits from KuzzleError.
This error object is used when an action only partially succeeded.
constructor(message: string, body?: Array<KuzzleError>, id?: string, code?: number)
constructor(message: string, id?: string, code?: number)| Argument | Type | Description |
|---|---|---|
message | string | Error message |
body | Array<KuzzleError> | (optional) List of errors encountered when executing the action |
id | string | (optional) Error unique name |
code | number | (optional) Error unique code |
The second call shape, without the list of errors, is the one shared by every other error class. The two are told apart by the third argument: a number with no fourth argument means that the list of errors was left out.