Table of Contents

Class SessionEstablishmentException

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

The exception indicating there was a problem when establishing a ISession.

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

Examples

Catching the exception and printing its message on the terminal.

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

Remarks

No further operations are possible when this exception has been thrown.


Added in 6.8.

Constructors

SessionEstablishmentException(Exception)

public SessionEstablishmentException(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 SessionEstablishmentException( innerException );

Remarks

Added in 6.8.

SessionEstablishmentException(string)

Initializes a new SessionEstablishmentException instance.

public SessionEstablishmentException(string message)

Parameters

message string

The exception message.

Examples

Creating a new instance.

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

Remarks

Added in 6.8.

SessionEstablishmentException(string, Exception)

public SessionEstablishmentException(string description, Exception inner)

Parameters

description string

The description of the exception.

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 SessionEstablishmentException( "The error message.", innerException );

Remarks

Added in 6.8.