using System.ComponentModel; using System.ComponentModel.DataAnnotations; using Kreta.Core.Enum; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Kreta.Core.Domain { public class DetailedErrorItem { public DetailedErrorItem(string propertyName, string message, BlExceptionType exceptionType) { PropertyName = propertyName; Message = message; ExceptionType = exceptionType; } [Required, Description("FE property azonosítására vagy entitás azonosítására szolgáló érték")] public string PropertyName { get; set; } [Required, Description("Ember által olvasható hibaüzenet
kliens dönti el, hogy megjeleníti-e a felhasználó számára")] public string Message { get; set; } [Required, Description("Az exception típusa; röviden az ok, ami kiváltotta"), JsonConverter(typeof(StringEnumConverter))] public BlExceptionType ExceptionType { get; set; } } }