indeedeng/iwf-java-sdk

Request for a better way to handle exceptions thrown from State class's execution methods

tcascio opened this issue · 1 comments

I think it would be nice to have a generic way to handle exceptions thrown from State class's execution methods (like a controller advice in Spring).

Hi @tcascio, @longquanzheng and I were reviewing this ticket and we have some concerns about a feature like this:

  • increased learning curve for future users
  • hidden "magic"

Are you thinking of something like @NotRetriableException = RuntimeException