Table of Contents

Class SessionSecurityException

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

The exception indicating that a ISession operation failed due to a security constraint.

public class SessionSecurityException : SessionException, ISerializable
Inheritance
SessionSecurityException
Implements
Inherited Members

Examples

Catching the exception and printing its message on the terminal.

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

Remarks

Repeating the operation with the same security credentials is likely to fail.


Added in 5.0.

Constructors

SessionSecurityException()

Initializes a new SessionSecurityException instance.

public SessionSecurityException()

Examples

Creating a new instance.

var exception = new SessionSecurityException();

Remarks

Added in 5.0.

SessionSecurityException(string)

Initializes a new SessionSecurityException instance.

public SessionSecurityException(string message)

Parameters

message string

The exception message.

Examples

Creating a new instance.

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

Remarks

Added in 5.0.

SessionSecurityException(string, Exception)

Initializes a new SessionSecurityException instance.

public SessionSecurityException(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 SessionSecurityException( "The error description.", innerException );

Remarks

Added in 5.0.