Class SessionEstablishmentException

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

Inheritance
System.Object
SessionException
SessionClosedException
SessionEstablishmentException
SessionEstablishmentTransientException
Namespace: PushTechnology.ClientInterface.Client.Session
Assembly: Diffusion.Client.dll
Syntax
public class SessionEstablishmentException : SessionClosedException
Remarks

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


Added in 6.8.

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

Constructors

SessionEstablishmentException(Exception)

Initializes a new SessionEstablishmentException instance. See SessionClosedException(Exception).

Declaration
public SessionEstablishmentException(Exception inner)
Parameters
Type Name Description
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 SessionEstablishmentException( innerException );

SessionEstablishmentException(String)

Initializes a new SessionEstablishmentException instance.

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

SessionEstablishmentException(String, Exception)

Initializes a new SessionEstablishmentException instance. See SessionClosedException(String, Exception).

Declaration
public SessionEstablishmentException(string description, Exception inner)
Parameters
Type Name Description
System.String description

The description of the exception.

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