Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try-Catch block for Catnip #32

Open
Banbury opened this issue Dec 23, 2024 · 1 comment
Open

Try-Catch block for Catnip #32

Banbury opened this issue Dec 23, 2024 · 1 comment
Labels
scope:catnip Issues with visual programming language Catnip state:readytoship Solution for this issue is ready to be shipped. type:enhancement A request to improve the existing functionality
Milestone

Comments

@Banbury
Copy link

Banbury commented Dec 23, 2024

Currently there is no way to deal with exceptions in Catnip. I propose a try-catch block, that catches exceptions and stores them in a variable.
The block would have separate areas for the try and the catch part of the code. The value of the exception is stored as an object.
This would allow Catnip scripts to deal with exceptions gracefully.

@Banbury Banbury added the type:enhancement A request to improve the existing functionality label Dec 23, 2024
@CosmoMyzrailGorynych CosmoMyzrailGorynych added the scope:catnip Issues with visual programming language Catnip label Dec 23, 2024
@CosmoMyzrailGorynych CosmoMyzrailGorynych added this to the v6 milestone Dec 23, 2024
@CosmoMyzrailGorynych
Copy link
Collaborator

Will be out in ct.js v6:

изображение

Also added a "Throw error"

@CosmoMyzrailGorynych CosmoMyzrailGorynych added the state:readytoship Solution for this issue is ready to be shipped. label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:catnip Issues with visual programming language Catnip state:readytoship Solution for this issue is ready to be shipped. type:enhancement A request to improve the existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants