Error Event

This event is fired when the server detects an error.

Syntax

public event OnErrorHandler OnError;

public delegate void OnErrorHandler(object sender, SmppErrorEventArgs e);

public class SmppErrorEventArgs : EventArgs {
  public int ErrorCode { get; }
  public string Description { get; }
}
Public Event OnError As OnErrorHandler

Public Delegate Sub OnErrorHandler(sender As Object, e As SmppErrorEventArgs)

Public Class SmppErrorEventArgs Inherits EventArgs
  Public ReadOnly Property ErrorCode As Integer
  Public ReadOnly Property Description As String
End Class

Remarks

If the server sends an error not related to a command sent from the component, the component will fire an Error event containing information related to the error.

ErrorCode will contain the code sent by the server, and Description will contain a standard interpretation of that code.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 .NET Edition - Version 20.0 [Build 8307]