Error handling

How to handle plugin errors?

Getting errors

The function is responsible for managing errors that occur during any plugin operation. When an error is detected, the function stores the error message in the internal variable. It then triggers the On Error condition, notifying the system that an error has occurred.

  • On Error Condition: This condition is triggered whenever an error occurs in the plugin, allowing you to handle it within your Construct 3 project.

  • Get Last Error Expression: The last error message can be retrieved using the Get Last Error expression, which returns the stored error message for debugging or user notifications.

This setup provides a consistent way to detect and respond to errors within your project.

Last updated