-
Notifications
You must be signed in to change notification settings - Fork 758
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
On fail should only be allowed with regular-compound-stmt #37315
Comments
For now |
Original impl based on ballerina-platform/ballerina-spec#337 (comment) |
What is the reason For example, I use this extensively to streamline error handling of transaction blocks (since all my database calls are wrapped in transactions anyway). The alternatives to this are:
The |
Had a chat with internal team and decided to allow on fail for transaction and retry statements |
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now. |
Description:
Ref https://ballerina.io/spec/lang/master/#stmt-with-on-fail
Steps to reproduce:
Affected Versions:
2201.1.1
OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):
The text was updated successfully, but these errors were encountered: