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
| Improve this Doc 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
| Improve this Doc View SourceActor
Retrieves the actor whose initialization logic failed.
Declaration
public IActorRef Actor { get; set; }
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 |
Overrides
| Improve this Doc View SourceToString()
Returns a String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents this instance. |