ReSharper on CommonCore project

This commit is contained in:
Thomas Wiedebusch
2022-08-24 11:42:44 +02:00
parent a16ce66dbe
commit fbfb914268
7 changed files with 53 additions and 58 deletions
@@ -1,39 +1,38 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Xylem.Common.CommonCore.Exceptions.Db
{
public class NoKeyStoredException : Exception, ICommonException
{
Guid? LCode = null;
public NoKeyStoredException(Guid? Location = null)
Guid? _lCode;
public NoKeyStoredException(Guid? location = null)
{
LCode = Location;
_lCode = location;
}
public NoKeyStoredException(string message, Guid? Location = null)
public NoKeyStoredException(String message, Guid? location = null)
: base(message)
{
LCode = Location;
_lCode = location;
}
public NoKeyStoredException(string message, Exception inner, Guid? Location = null)
public NoKeyStoredException(String message, Exception inner, Guid? location = null)
: base(message, inner)
{
LCode = Location;
_lCode = location;
}
public string GetHelpText()
public String GetHelpText()
{
var sb = new StringBuilder();
sb.AppendLine($"Report this to a developer or database admin.");
sb.AppendLine($"Something went wrong while store the keyset on BSI.");
sb.AppendLine("Report this to a developer or database admin.");
sb.AppendLine("Something went wrong while store the keyset on BSI.");
if (LCode.HasValue)
if (_lCode.HasValue)
{
sb.AppendLine($"LCode:{LCode.Value}");
sb.AppendLine($"LCode:{_lCode.Value}");
}
return sb.ToString();
}