init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
27
Kreta.Core/Domain/DetailedErrorItem.cs
Normal file
27
Kreta.Core/Domain/DetailedErrorItem.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
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<br>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; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue