RobotApp/RobotApp.VDA5050/State/Error.cs
Đăng Nguyễn d6fe1d9d52 update
2025-09-26 08:48:50 +07:00

35 lines
740 B
C#

using System.ComponentModel.DataAnnotations;
namespace RobotApp.VDA5050.State;
public enum ErrorLevel
{
NONE,
WARNING,
FATAL
}
public class ErrorReferences
{
[Required]
public string ReferenceKey { get; set; } = string.Empty;
[Required]
public string ReferenceValue { get; set; } = string.Empty;
}
public enum ErrorType
{
INITIALIZE_ORDER,
}
public class Error
{
[Required]
public string ErrorType { get; set; } = string.Empty;
public ErrorReferences[] ErrorReferences { get; set; } = [];
public string ErrorDescription { get; set; } = string.Empty;
public string ErrorHint { get; set; } = string.Empty;
[Required]
public string ErrorLevel { get; set; } = string.Empty;
}