Error Handling

If the bot API returns an error, the SDK wraps the error into a ChatbotResponseException object. This example shows how to retrieve the error details using try and catch.