Search Results for

    Show / Hide Table of Contents

    Class PostRestartException

    This exception is thrown when the Actor constructor or PostRestart(Exception) method fails during a restart attempt.

    Inheritance
    object
    Exception
    AkkaException
    ActorInitializationException
    PostRestartException
    Implements
    ISerializable
    Inherited Members
    ActorInitializationException.Actor
    ActorInitializationException.ToString()
    AkkaException.Cause
    Exception.GetBaseException()
    Exception.GetType()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Akka.Actor
    Assembly: Akka.dll
    Syntax
    public class PostRestartException : ActorInitializationException, ISerializable

    Constructors

    | Edit this page View Source

    PostRestartException(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 actor within PostRestart(Exception).

    Exception originalCause

    The original cause is the exception which caused the restart in the first place.

    | Edit this page View Source

    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

    | Edit this page View Source

    OriginalCause

    Retrieves the exception which caused the restart in the first place.

    Declaration
    public Exception OriginalCause { get; }
    Property Value
    Type Description
    Exception

    Methods

    | Edit this page View Source

    GetObjectData(SerializationInfo, StreamingContext)

    Declaration
    public override void GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info
    StreamingContext context
    Overrides
    ActorInitializationException.GetObjectData(SerializationInfo, StreamingContext)

    Implements

    ISerializable

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET