Error handling in GDscript

Godot Version

4.2

Question

Dose Godot has error hander like try except

1 Like

Godot follows the philosophy of keeping the game running even if it something goes wrong and the entire API is build around returning error codes for the user to handle them.
Check the docs for more info about the error handling mechanism.

3 Likes

related reddit thread that also gives some details about handling errors in various scopes
https://www.reddit.com/r/godot/comments/vlzchq/error_handling/