IoWarningEventArgs
Class for IO warning event arguments. This class cannot be inherited.
using System;
namespace Relativity.DataExchange.Io
{
public sealed class IoWarningEventArgs : EventArgs
{
public long CurrentLineNumber { get; }
public Exception Exception { get; }
public string Message { get; }
public int WaitTime { get; }
public IoWarningType WarningType { get; }
public IoWarningEventArgs(string message, long lineNumber)
{
Message = message;
CurrentLineNumber = lineNumber;
WarningType = IoWarningType.Message;
}
public IoWarningEventArgs(int waitTime, Exception exception, long lineNumber)
{
WaitTime = waitTime;
Exception = exception;
CurrentLineNumber = lineNumber;
WarningType = ((waitTime <= 0) ? IoWarningType.InstantRetry : IoWarningType.WaitRetryError);
}
}
}