SDK Java v1.x

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.

This SDK has been deprecated because of stability issues. It is not advised to use it in a production environment.

Error Handling #

SDK methods handle failure by throwing exceptions inheriting the KuzzleException class, which is a standard Java exception extending the Throwable class.

You can find a detailed list of possible errors messages and statuses in the documentation API. Just replace Error by Exception to find the exception name. (e.g. BadRequestError becomes BadRequestException).

Example #

Copied to clipboard!
try {
} catch (BadRequestException e) {
  System.err.println("Try with another name!");