Initial commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
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)
|
||||
{
|
||||
LCode = Location;
|
||||
}
|
||||
public NoKeyStoredException(string message, Guid? Location = null)
|
||||
: base(message)
|
||||
{
|
||||
LCode = Location;
|
||||
}
|
||||
|
||||
public NoKeyStoredException(string message, Exception inner, Guid? Location = null)
|
||||
: base(message, inner)
|
||||
{
|
||||
LCode = Location;
|
||||
}
|
||||
|
||||
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.");
|
||||
|
||||
|
||||
if (LCode.HasValue)
|
||||
{
|
||||
sb.AppendLine($"LCode:{LCode.Value}");
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Xylem.Common.CommonCore.Exceptions.Db
|
||||
{
|
||||
public class PcbIdNotException : Exception, ICommonException
|
||||
{
|
||||
Guid? LCode = null;
|
||||
public PcbIdNotException(Guid? Location = null)
|
||||
{
|
||||
LCode = Location;
|
||||
}
|
||||
public PcbIdNotException(string message, Guid? Location = null)
|
||||
: base(message)
|
||||
{
|
||||
LCode = Location;
|
||||
}
|
||||
|
||||
public PcbIdNotException(string message, Exception inner, Guid? Location = null)
|
||||
: base(message, inner)
|
||||
{
|
||||
LCode = Location;
|
||||
}
|
||||
|
||||
public string GetHelpText()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
|
||||
sb.AppendLine($"1. Retry your request.");
|
||||
sb.AppendLine($"2. Check if you Pcb was produced by LAA Operations.");
|
||||
sb.AppendLine($"3. Ask the source of you pcb for the password and the pcbid and let it regiuster at LAA Operations.");
|
||||
|
||||
if (LCode.HasValue)
|
||||
{
|
||||
sb.AppendLine($"LCode:{LCode.Value}");
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user