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)
Initializes a new SessionEstablishmentException instance. See SessionClosedException(Exception).
public SessionEstablishmentException(Exception inner)
Parameters
innerExceptionThe 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
messagestringThe exception message.
Examples
Creating a new instance.
var exception = new SessionEstablishmentException( "The error message." );
Remarks
Added in 6.8.
SessionEstablishmentException(string, Exception)
Initializes a new SessionEstablishmentException instance. See SessionClosedException(string, Exception).
public SessionEstablishmentException(string description, Exception inner)
Parameters
descriptionstringThe description of the exception.
innerExceptionThe 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.