Table of Contents

Interface ISessionError

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

Encapsulates the detail of a reported error.

public interface ISessionError

Examples

An instance of this interface can be obtained by the SessionErrorHandlerEventArgs event argument.

var factory = Diffusion.Sessions.SessionErrorHandler(
    (sender, args) => {
        var error = args.Error;
    } );

Remarks

Note

This interface does not require user implementation and is only used to hide implementation details.

Added in 5.0.

Properties

Message

Gets the description of this error.

string Message { get; }

Property Value

string

The description of this error.

Examples

Printing a session error message to the terminal.

var factory = Diffusion.Sessions.SessionErrorHandler(
    (sender, args) => {
        var error = args.Error;
        Console.WriteLine( "Error: {0}", error.Message );
    } );

Remarks

Added in 5.0.