Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    Exception
    AkkaException
    ActorInitializationException
    PreRestartException
    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 PreRestartException : ActorInitializationException, ISerializable

    Constructors

    | Edit this page View Source

    PreRestartException(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 actor within PreRestart(Exception, object).

    Exception cause

    The exception which caused the restart in the first place.

    object optionalMessage

    The message which was optionally passed into PreRestart(Exception, object).

    | Edit this page View Source

    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

    | Edit this page View Source

    OptionalMessage

    Declaration
    public object OptionalMessage { get; }
    Property Value
    Type Description
    object
    | Edit this page View Source

    RestartException

    Declaration
    public Exception RestartException { 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