Package org.apache.pekko.actor
Class PreRestartException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.pekko.PekkoException
org.apache.pekko.actor.ActorInitializationException
org.apache.pekko.actor.PreRestartException
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
public final class PreRestartException
extends ActorInitializationException
implements scala.Product, 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:
-
Method Summary
Modifier and TypeMethodDescriptionactor()static PreRestartExceptionbooleancause()scala.Option<Object>booleaninthashCode()scala.Option<Object>intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>static final StringtoString()Methods inherited from class org.apache.pekko.actor.ActorInitializationException
getActor, unapplyMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Method Details
-
toString
-
apply
public static PreRestartException apply(ActorRef actor, Throwable cause, Throwable originalCause, scala.Option<Object> messageOption) -
unapply
public static scala.Option<scala.Tuple4<ActorRef,Throwable, unapplyThrowable, scala.Option<Object>>> (PreRestartException x$0) -
actor
-
cause
-
originalCause
-
messageOption
-
copy
public PreRestartException copy(ActorRef actor, Throwable cause, Throwable originalCause, scala.Option<Object> messageOption) -
copy$default$1
-
copy$default$2
-
copy$default$3
-
copy$default$4
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
equals
-