Table of Contents

Class SessionEstablishmentTransientException

Namespace
PushTechnology.ClientInterface.Client.Session
Assembly
Diffusion.Client.dll

Represents a transient problem when establishing a ISession.

public class SessionEstablishmentTransientException : SessionEstablishmentException, ISerializable
Inheritance
SessionEstablishmentTransientException
Implements
Derived
Inherited Members

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}" );
}

Remarks

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


Added in 6.8.

Constructors

SessionEstablishmentTransientException(Exception)

Initializes a new SessionEstablishmentTransientException instance.

public SessionEstablishmentTransientException(Exception inner)

Parameters

inner Exception

The exception that is the cause for this exception.

Examples

Creating a new instance.

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

Remarks

Added in 6.8.

SessionEstablishmentTransientException(string)

Initializes a new SessionEstablishmentTransientException instance.

public SessionEstablishmentTransientException(string message)

Parameters

message string

The exception message.

Examples

Creating a new instance.

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

Remarks

Added in 6.8.