36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
namespace DTS.Common.Classes.Groups
|
|
{
|
|
// ReSharper disable once InconsistentNaming
|
|
/// <summary>
|
|
/// this class encapsulates and enumerates all possible errors while importing a .GRP file
|
|
/// </summary>
|
|
public class GroupGRPImportError
|
|
{
|
|
public enum Errors
|
|
{
|
|
FileEmpty,
|
|
InvalidISOCodeInput,
|
|
InvalidFullScaleInput,
|
|
InvalidSensorInput,
|
|
InvalidInvertInput,
|
|
SensorNotFound,
|
|
InvalidInputMode,
|
|
InvalidDefaultValue,
|
|
InvalidActiveValue,
|
|
InvalidFireMode,
|
|
InvalidDelay,
|
|
InvalidLimitDuration,
|
|
InvalidDuration,
|
|
InvalidCurrent
|
|
}
|
|
public Errors ErrorCode { get; set; }
|
|
public string File { get; set; }
|
|
public int Line { get; set; }
|
|
public string ExtraInfo { get; set; }
|
|
public override string ToString()
|
|
{
|
|
return ExtraInfo;
|
|
}
|
|
}
|
|
}
|