This is an automated email from the ASF dual-hosted git repository.

hepin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko.git


The following commit(s) were added to refs/heads/main by this push:
     new 3e0d18b017 Add @since 2.0.0 annotations to StatusReply.fromTry methods 
(#2810)
3e0d18b017 is described below

commit 3e0d18b017801cedce39e474273ca677f1812f3f
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Sat Mar 28 17:02:25 2026 +0800

    Add @since 2.0.0 annotations to StatusReply.fromTry methods (#2810)
    
    Co-authored-by: Copilot <[email protected]>
---
 actor/src/main/scala/org/apache/pekko/pattern/StatusReply.scala | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/actor/src/main/scala/org/apache/pekko/pattern/StatusReply.scala 
b/actor/src/main/scala/org/apache/pekko/pattern/StatusReply.scala
index 4825f4caa0..ee5e56a983 100644
--- a/actor/src/main/scala/org/apache/pekko/pattern/StatusReply.scala
+++ b/actor/src/main/scala/org/apache/pekko/pattern/StatusReply.scala
@@ -111,6 +111,8 @@ object StatusReply {
    * Transforms exceptions into status reply errors containing just the 
exception message string.
    *
    * See [[#fromTryKeepException]] for passing the exception along as is.
+   *
+   * @since 2.0.0
    */
   def fromTry[T](status: Try[T]): StatusReply[T] = status match {
     case ScalaSuccess(value) => success(value)
@@ -128,6 +130,8 @@ object StatusReply {
    * set of response messages may be a better alternative to encoding them as 
generic exceptions.
    *
    * Also note that Pekko does not contain pre-built serializers for arbitrary 
exceptions.
+   *
+   * @since 2.0.0
    */
   def fromTryKeepException[T](status: Try[T]): StatusReply[T] = new 
StatusReply(status)
 


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

Reply via email to