ReSharper on CommonCore project
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user