29 lines
801 B
C#
29 lines
801 B
C#
using BS.Shared.DataContracts;
|
|
using BS.Shared.Interface;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BS.Shared.Core
|
|
{
|
|
public class AppError
|
|
{
|
|
public string Code { get; set; }
|
|
public string Message { get; set; }
|
|
public string Displayname => $"AppError {Code}: {Message}";
|
|
|
|
// Private damit zentral alle Errors
|
|
private AppError(string code, string message)
|
|
{
|
|
Code = code;
|
|
Message = message;
|
|
}
|
|
|
|
//public static readonly AppError Example = new AppError("Code", "Message");
|
|
|
|
public static readonly Func<OrganisationDC, AppError> GkvDatenannahmestelleAdresseNotFound = (dc) => new AppError("GKV.70001", $"Unbekannte Datenannahmestelle. Bitte neu in der Organisation {dc.Name} ermitteln");
|
|
}
|
|
}
|