Class SessionSecurityException
The exception indicating that a ISession operation failed due to a security constraint.
Namespace: PushTechnology.ClientInterface.Client.Session
Assembly: Diffusion.Client.dll
Syntax
public class SessionSecurityException : SessionException
Remarks
Repeating the operation with the same security credentials is likely to fail.
Added in 5.0.
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}" );
}
Constructors
SessionSecurityException()
Initializes a new SessionSecurityException instance.
Declaration
public SessionSecurityException()
Remarks
Added in 5.0.
Examples
Creating a new instance.
var exception = new SessionSecurityException();
SessionSecurityException(String)
Initializes a new SessionSecurityException instance.
Declaration
public SessionSecurityException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The exception message. |
Remarks
Added in 5.0.
Examples
Creating a new instance.
var exception = new SessionSecurityException( "The error message." );
SessionSecurityException(String, Exception)
Initializes a new SessionSecurityException instance.
Declaration
public SessionSecurityException(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 SessionSecurityException( "The error description.", innerException );