Class SessionClosedException
The exception indicating a ISession closure.
Namespace: PushTechnology.ClientInterface.Client.Session
Assembly: Diffusion.Client.dll
Syntax
public class SessionClosedException : SessionException
Remarks
No further operations are possible when this exception has been thrown.
Added in 5.0.
Examples
Catching the exception and printing its message on the terminal.
try {
// Some call that might throw a SessionClosedException
} catch ( SessionClosedException ex ) {
Console.WriteLine( $"[ERROR] {ex.Message}" );
}
Constructors
SessionClosedException()
Initializes a new SessionClosedException instance.
Declaration
public SessionClosedException()
Remarks
Added in 5.0.
Examples
Creating a new instance.
var exception = new SessionClosedException();
SessionClosedException(Exception)
Initializes a new SessionClosedException instance.
Declaration
public SessionClosedException(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 SessionClosedException( innerException );
SessionClosedException(String)
Initializes a new SessionClosedException instance.
Declaration
public SessionClosedException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The exception message. |
Remarks
Added in 5.0.
Examples
Creating a new instance.
var exception = new SessionClosedException( "The error message." );
SessionClosedException(String, Exception)
Initializes a new SessionClosedException instance.
Declaration
public SessionClosedException(string description, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
String | description | The description of the exception. |
Exception | inner | The exception that is the cause for this exception. |
Remarks
Added in 5.0.
Examples
Creating a new instance.
// innerException is a previously created exception instance.
var exception = new SessionClosedException( "The error description.", innerException );