Class DeathPactException
This exception is thrown by an Actor that receives a Terminated(someActor) message that it doesn't handle itself, effectively crashing the Actor and escalating to the supervisor.
Implements
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public class DeathPactException : AkkaException, ISerializable
Constructors
| Improve this Doc View SourceDeathPactException(IActorRef)
Initializes a new instance of the DeathPactException class.
Declaration
public DeathPactException(IActorRef deadActor)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | deadActor | The actor that has been terminated. |
DeathPactException(SerializationInfo, StreamingContext)
Initializes a new instance of the DeathPactException class.
Declaration
protected DeathPactException(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 SourceDeadActor
Retrieves the actor that has been terminated.
Declaration
public IActorRef DeadActor { get; }
Property Value
Type | Description |
---|---|
IActorRef |
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 |