Package 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 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ActorRef
actor()
static PreRestartException
apply(ActorRef actor, java.lang.Throwable cause, java.lang.Throwable originalCause, scala.Option<java.lang.Object> messageOption)
boolean
canEqual(java.lang.Object x$1)
java.lang.Throwable
cause()
PreRestartException
copy(ActorRef actor, java.lang.Throwable cause, java.lang.Throwable originalCause, scala.Option<java.lang.Object> messageOption)
ActorRef
copy$default$1()
java.lang.Throwable
copy$default$2()
java.lang.Throwable
copy$default$3()
scala.Option<java.lang.Object>
copy$default$4()
boolean
equals(java.lang.Object x$1)
int
hashCode()
scala.Option<java.lang.Object>
messageOption()
java.lang.Throwable
originalCause()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
static java.lang.String
toString()
static scala.Option<scala.Tuple4<ActorRef,java.lang.Throwable,java.lang.Throwable,scala.Option<java.lang.Object>>>
unapply(PreRestartException x$0)
-
Methods inherited from class akka.actor.ActorInitializationException
getActor, unapply
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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)
-
actor
public ActorRef actor()
-
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 interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-