Interface ISessionError
Encapsulates the detail of a reported error.
Namespace: PushTechnology.ClientInterface.Client.Session
Assembly: Diffusion.Client.dll
Syntax
public interface ISessionError
Remarks
Note
This interface does not require user implementation and is only used to hide implementation details.
Added in 5.0.
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;
} );
Properties
Message
Gets the description of this error.
Declaration
string Message { get; }
Property Value
Type | Description |
---|---|
String | The description of this error. |
Remarks
Added in 5.0.
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 );
} );