This commit is contained in:
Đăng Nguyễn
2025-09-26 08:48:50 +07:00
parent 0d97684f70
commit d6fe1d9d52
53 changed files with 1232 additions and 111 deletions

View File

@@ -2,28 +2,33 @@
namespace RobotApp.VDA5050.State;
#nullable disable
public enum ErrorLevel
{
NONE,
WARNING,
FATAL
}
public class ErrorReferences
{
[Required]
public string ReferenceKey { get; set; }
public string ReferenceKey { get; set; } = string.Empty;
[Required]
public string ReferenceValue { get; set; }
public string ReferenceValue { get; set; } = string.Empty;
}
public enum ErrorType
{
INITIALIZE_ORDER,
}
public class Error
{
[Required]
public string ErrorType { get; set; }
public ErrorReferences[] ErrorReferences { get; set; }
public string ErrorDescription { get; set; }
public string ErrorHint { get; set; }
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; }
public string ErrorLevel { get; set; } = string.Empty;
}