KuzzleError #
Inherits from the standard Javascript Error
object: abstract class inherited by all Kuzzle error objects.
This class should only be used to create new Kuzzle error objects.
Properties #
Property | Type | Description |
---|---|---|
message | string | Error message |
stack | string | Error stack trace (not available in production mode) |
status | number | Error status code, following the standard HTTP status code |
errorName | string | Error full name, composed by domain, subdomain and the name of the error |
code | number | Error unique code |
errorName #
The errorName
property is a concatenation of 3 levels of precision; explaining where an error comes from. For instance, an errorName
set to plugins.foobar-plugins.some_error
belongs to the plugins
domain. It has been thrown by a plugin named foobar-plugin
, and the error itself has been attributed the name of some_error
.
Edit this page on Github(opens new window)