Class ActorInitializationException
This exception is thrown when the initialization logic for an Actor fails.
Inheritance
Implements
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public class ActorInitializationException : AkkaException, ISerializable
Constructors
| Edit this page View SourceActorInitializationException()
Initializes a new instance of the ActorInitializationException class.
Declaration
public ActorInitializationException()
ActorInitializationException(IActorRef, string, Exception)
Initializes a new instance of the ActorInitializationException class.
Declaration
public ActorInitializationException(IActorRef actor, string message, Exception cause = null)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | actor | The actor whose initialization logic failed. |
string | message | The message that describes the error. |
Exception | cause | The exception that is the cause of the current exception. |
ActorInitializationException(SerializationInfo, StreamingContext)
Initializes a new instance of the ActorInitializationException class.
Declaration
protected ActorInitializationException(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. |
ActorInitializationException(string)
Initializes a new instance of the ActorInitializationException class.
Declaration
public ActorInitializationException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message that describes the error. |
ActorInitializationException(string, Exception)
Initializes a new instance of the ActorInitializationException class.
Declaration
public ActorInitializationException(string message, Exception cause)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message that describes the error. |
Exception | cause | The exception that is the cause of the current exception. |
Properties
| Edit this page View SourceActor
Retrieves the actor whose initialization logic failed.
Declaration
public IActorRef Actor { get; set; }
Property Value
Type | Description |
---|---|
IActorRef |
Methods
| Edit this page View SourceGetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
Overrides
| Edit this page View SourceToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents this instance. |