akka.actor
Class PreRestartException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
akka.AkkaException
akka.actor.ActorInitializationException
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)
|
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 |
PreRestartException
public PreRestartException(ActorRef actor,
java.lang.Throwable cause,
java.lang.Throwable originalCause,
scala.Option<java.lang.Object> messageOption)
actor
public ActorRef actor()
cause
public java.lang.Throwable cause()
originalCause
public java.lang.Throwable originalCause()
messageOption
public scala.Option<java.lang.Object> messageOption()