Skip to content

Improve error handling for custom message lambdas#33

Merged
afuno merged 2 commits intomainfrom
feature/SRV-341/rescue_message
Nov 30, 2025
Merged

Improve error handling for custom message lambdas#33
afuno merged 2 commits intomainfrom
feature/SRV-341/rescue_message

Conversation

@afuno
Copy link
Member

@afuno afuno commented Nov 30, 2025

No description provided.

- Enhanced `resolve_custom_message` to catch exceptions from custom message lambdas.
- Integrated error handling for raising clear `Treaty::Exceptions::Validation` errors.
- Updated documentation to detail error handling for custom message lambdas.
- Added new localization keys for `message_evaluation_error`.
@afuno afuno added this to the v1.0.0 milestone Nov 30, 2025
@afuno afuno self-assigned this Nov 30, 2025
@afuno afuno added the feature label Nov 30, 2025
- Added details on how exceptions in message lambdas are caught and converted into `Treaty::Exceptions::Validation` errors.
- Updated `validation.md`, `attributes.md`, and troubleshooting guides with explanatory examples and best practices for handling errors in custom message logic.
- Enhanced the cheatsheet with a note on automatic error handling for message lambdas.
@afuno afuno marked this pull request as ready for review November 30, 2025 11:47
@afuno afuno merged commit 4370d26 into main Nov 30, 2025
23 checks passed
@afuno afuno deleted the feature/SRV-341/rescue_message branch November 30, 2025 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant