Class PostRestartException
This exception is thrown when the Actor constructor or PostRestart(Exception) method fails during a restart attempt.
Implements
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public class PostRestartException : ActorInitializationException, ISerializable
Constructors
| Improve this Doc View SourcePostRestartException(IActorRef, Exception, Exception)
Initializes a new instance of the PostRestartException class.
Declaration
public PostRestartException(IActorRef actor, Exception cause, Exception originalCause)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | actor | The actor whose constructor or PostRestart(Exception) hook failed. |
Exception | cause | The exception thrown by the |
Exception | originalCause | The original cause is the exception which caused the restart in the first place. |
PostRestartException(SerializationInfo, StreamingContext)
Initializes a new instance of the PostRestartException class.
Declaration
protected PostRestartException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
Properties
| Improve this Doc View SourceOriginalCause
Retrieves the exception which caused the restart in the first place.
Declaration
public Exception OriginalCause { get; }
Property Value
Type | Description |
---|---|
Exception |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |