Class SessionEstablishmentTransientException

Represents a transient problem when establishing a ISession.

Inheritance
System.Object
System.Exception
SessionException
SessionClosedException
SessionEstablishmentException
SessionEstablishmentTransientException
ServerInitializingException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: PushTechnology.ClientInterface.Client.Session
Assembly: Diffusion.Client.dll
Syntax
public class SessionEstablishmentTransientException : SessionEstablishmentException, ISerializable
Remarks

On receiving such an exception it is reasonable for the caller to try opening a session again.


Added in 6.8.

Examples

Catching the exception and printing its message on the terminal.

try {
    // Some call that might throw a SessionEstablishmentTransientException
} catch ( SessionEstablishmentTransientException ex ) {
    Console.WriteLine( $"[ERROR] {ex.Message}" );
}

Constructors

SessionEstablishmentTransientException(Exception)

Initializes a new SessionEstablishmentTransientException instance.

Declaration
public SessionEstablishmentTransientException(Exception inner)
Parameters
Type Name Description
System.Exception inner

The exception that is the cause for this exception.

Remarks

Added in 6.8.

Examples

Creating a new instance.

// innerException is a previously created exception instance.
var exception = new SessionEstablishmentTransientException( innerException );

SessionEstablishmentTransientException(String)

Initializes a new SessionEstablishmentTransientException instance.

Declaration
public SessionEstablishmentTransientException(string message)
Parameters
Type Name Description
System.String message

The exception message.

Remarks

Added in 6.8.

Examples

Creating a new instance.

var exception = new SessionEstablishmentTransientException( "The error message." );

Implements

System.Runtime.Serialization.ISerializable
Back to top