using System; namespace Krs.Ats.IBNet { /// /// Error Event Arguments /// [Serializable()] public class ErrorEventArgs : EventArgs { private ErrorMessage errorCode; private string errorMsg; private int tickerId; /// /// Full Constructor /// /// This is the orderId or tickerId of the request that generated the error. /// Error codes are documented in the Error Codes topic. /// This is the textual description of the error, also documented in the Error Codes topic. public ErrorEventArgs(int tickerId, ErrorMessage errorCode, string errorMsg) { this.tickerId = tickerId; this.errorMsg = errorMsg; this.errorCode = errorCode; } /// /// Uninitialized Constructor for Serialization /// public ErrorEventArgs() { } /// /// This is the orderId or tickerId of the request that generated the error. /// public int TickerId { get { return tickerId; } set { tickerId = value; } } /// /// Error codes are documented in the Error Codes topic. /// /// public ErrorMessage ErrorCode { get { return errorCode; } set { errorCode = value; } } /// /// This is the textual description of the error, also documented in the Error Codes topic. /// /// public string ErrorMsg { get { return errorMsg; } set { errorMsg = value; } } } }