Class UnstashException<T>

  • All Implemented Interfaces:, scala.Equals, scala.Product

    public final class UnstashException<T>
    extends java.lang.RuntimeException
    implements scala.Product,
    See Also:
    Serialized Form
    • Constructor Detail

      • UnstashException

        public UnstashException​(java.lang.Throwable cause,
                                Behavior<T> behavior)
    • Method Detail

      • unwrap

        public static java.lang.Throwable unwrap​(java.lang.Throwable t)
      • apply

        public static <T> UnstashException<T> apply​(java.lang.Throwable cause,
                                                    Behavior<T> behavior)

        When unstashing, the exception is wrapped in UnstashException because supervisor strategy and ActorAdapter need the behavior that threw. It will use the behavior in the UnstashException to emit the PreRestart and PostStop to the right behavior and install the latest behavior for resume strategy.

      • unapply

        public static <T> scala.Option<scala.Tuple2<java.lang.Throwable,​Behavior<T>>> unapply​(UnstashException<T> x$0)
      • cause

        public java.lang.Throwable cause()
      • copy$default$1

        public <T> java.lang.Throwable copy$default$1()
      • copy$default$2

        public <T> Behavior<T> copy$default$2()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        equals in class java.lang.Object