He-Pin opened a new pull request, #2796:
URL: https://github.com/apache/pekko/pull/2796

   ## Motivation
   
   StatusReply lacked convenient factory methods for creating responses from 
Try values, requiring verbose pattern matching at every call site.
   
   ## Modification
   
   Added StatusReply.fromTry (wraps exception in StatusException) and 
fromTryKeepException (preserves original exception type) factory methods in 
both Scala and Java APIs.
   
   ## Result
   
   Cleaner, more concise code when converting Try results to StatusReply 
responses.
   
   ## References
   
   - Upstream commit: 
[akka/akka-core@38f3fd8472](https://github.com/akka/akka-core/commit/38f3fd8472),
 which is now Apache licensed.
   - Cherry-picked from akka/akka-core v2.8.0 (released Sept 2022, BSL -> 
Apache 2.0 after 3 years).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to