-
I would like to handle specific errors from a Lambda handler with a Retry field in a StepFunctions state machine. To capture errors, I have to specify exact names ( As far as I read the code, aws-lambda-rust-runtime/lambda-runtime/src/lib.rs Lines 252 to 261 in a4aa23e Is there any more reliable way to specify |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
We could introduce some kind of error casting. We could check for it, using |
Beta Was this translation helpful? Give feedback.
-
@kikuomax In your example how do you define And did you use |
Beta Was this translation helpful? Give feedback.
We could introduce some kind of error casting. We could check for it, using
type_name_of_val
as a fallback. That's just an idea, but if you have any other idea, or want to try to implement it, feel free to open a PR.