Class PreRestartException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by akka.AkkaException
                  extended by akka.actor.ActorInitializationException
                      extended by akka.actor.PreRestartException
All Implemented Interfaces:
java.io.Serializable, scala.Equals, scala.Product

public class PreRestartException
extends ActorInitializationException
implements scala.Product, scala.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

Constructor Summary
PreRestartException(ActorRef actor, java.lang.Throwable cause, java.lang.Throwable originalCause, scala.Option<java.lang.Object> messageOption)
Method Summary
 ActorRef actor()
 java.lang.Throwable cause()
 scala.Option<java.lang.Object> messageOption()
 java.lang.Throwable originalCause()
Methods inherited from class akka.actor.ActorInitializationException
apply, apply, getActor, unapply
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
Methods inherited from interface scala.Equals
canEqual, equals

Constructor Detail


public PreRestartException(ActorRef actor,
                           java.lang.Throwable cause,
                           java.lang.Throwable originalCause,
                           scala.Option<java.lang.Object> messageOption)
Method Detail


public ActorRef actor()


public java.lang.Throwable cause()


public java.lang.Throwable originalCause()


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