KuzzleError #
Inherits from the standard Javascript Error
object: abstract class inherited by all Kuzzle error objects.
This class can be used to create new standardized Kuzzle error objects for API responses.
constructor(message: string, status: number, id?: string, code?: number)
Argument | Type | Description |
---|---|---|
message | string | Error message |
status | number | Error status code (Kuzzle's API errors follow the HTTP standard) |
id | string | (optional) Error unique name |
code | number | (optional) Error unique code |
Edit this page on Github(opens new window)