Core
Write Plugins v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

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.