Package akka.actor

Class PreRestartException

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product

    public final class PreRestartException
    extends ActorInitializationException
    implements scala.Product, java.io.Serializable
    A PreRestartException is thrown when the preRestart() method failed; this exception is not propagated to the supervisor, as it originates from the already failed instance, hence it is only visible as log entry on the event stream.

    param: actor is the actor whose preRestart() hook failed param: cause is the exception thrown by that actor within preRestart() param: originalCause is the exception which caused the restart in the first place param: messageOption is the message which was optionally passed into preRestart()

    See Also:
    Serialized Form
    • Method Detail

      • toString

        public static final java.lang.String toString()
      • apply

        public static PreRestartException apply​(ActorRef actor,
                                                java.lang.Throwable cause,
                                                java.lang.Throwable originalCause,
                                                scala.Option<java.lang.Object> messageOption)
      • unapply

        public static scala.Option<scala.Tuple4<ActorRef,​java.lang.Throwable,​java.lang.Throwable,​scala.Option<java.lang.Object>>> unapply​(PreRestartException x$0)
      • cause

        public java.lang.Throwable cause()
      • originalCause

        public java.lang.Throwable originalCause()
      • messageOption

        public scala.Option<java.lang.Object> messageOption()
      • copy

        public PreRestartException copy​(ActorRef actor,
                                        java.lang.Throwable cause,
                                        java.lang.Throwable originalCause,
                                        scala.Option<java.lang.Object> messageOption)
      • copy$default$1

        public ActorRef copy$default$1()
      • copy$default$2

        public java.lang.Throwable copy$default$2()
      • copy$default$3

        public java.lang.Throwable copy$default$3()
      • copy$default$4

        public scala.Option<java.lang.Object> copy$default$4()
      • 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)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

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

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