Class PreRestartException
This exception is thrown when the PreRestart(Exception, Object) method fails during a restart attempt.
note
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.
Implements
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public class PreRestartException : ActorInitializationException, ISerializable
Constructors
| Improve this Doc View SourcePreRestartException(IActorRef, Exception, Exception, Object)
Initializes a new instance of the PreRestartException class.
Declaration
public PreRestartException(IActorRef actor, Exception restartException, Exception cause, object optionalMessage)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | actor | The actor whose PreRestart(Exception, Object) hook failed. |
Exception | restartException | The exception thrown by the |
Exception | cause | The exception which caused the restart in the first place. |
Object | optionalMessage | The message which was optionally passed into PreRestart(Exception, Object). |
PreRestartException(SerializationInfo, StreamingContext)
Initializes a new instance of the PreRestartException class.
Declaration
protected PreRestartException(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 SourceOptionalMessage
Declaration
public object OptionalMessage { get; }
Property Value
Type | Description |
---|---|
Object |
RestartException
Declaration
public Exception RestartException { 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 |