This commit is contained in:
Zeeshaun
2026-03-17 09:53:09 -05:00
parent cdcba54aa4
commit 1a0702a79a
590 changed files with 62058 additions and 0 deletions
@@ -0,0 +1,8 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class BadActivityStateChangeException : ApplicationException
{
public BadActivityStateChangeException(string message) : base(message)
{
}
}
@@ -0,0 +1,8 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class BadActivityTransferActionException : ApplicationException
{
public BadActivityTransferActionException(string message) : base(message)
{
}
}
@@ -0,0 +1,8 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class BadDepartmentAssignmentException : ApplicationException
{
public BadDepartmentAssignmentException(string message) : base(message)
{
}
}
@@ -0,0 +1,8 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class BadUserAssignmentException : ApplicationException
{
public BadUserAssignmentException(string message) : base(message)
{
}
}
@@ -0,0 +1,8 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class CommissionExistsException : ApplicationException
{
public CommissionExistsException(string message) : base(message)
{
}
}
@@ -0,0 +1,9 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class DataIntegrityException : ApplicationException
{
public DataIntegrityException(string message) : base(message)
{
}
}
@@ -0,0 +1,8 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class DataIntegrityFailureException : ApplicationException
{
public DataIntegrityFailureException(string message) : base(message)
{
}
}
@@ -0,0 +1,8 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class DeadActivityException: ApplicationException
{
public DeadActivityException(string message) : base(message)
{
}
}
@@ -0,0 +1,9 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class DuplicateDataException : ApplicationException
{
public DuplicateDataException(string message) : base(message)
{
}
}
@@ -0,0 +1,6 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class FailedParsingHeadersException : System.Exception
{
public FailedParsingHeadersException() : base("Missing Required Headers") {}
}
@@ -0,0 +1,13 @@
using LCU.Library.Internal.IncentiveApiModels.Enums;
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class MissingProcessorRunHistoryException : ApplicationException
{
public MissingProcessorRunHistoryException(Process process) : base(
$"{process.ToString()} process does not have a ProcessorHistory entry and needs to be manually seeded.")
{
Log.Fatal(
$"{process.ToString()} does not have a ProcessorHistory entry and needs to be manually seeded. New Activities of this type will not be imported until a record is seeded.");
}
}
@@ -0,0 +1,8 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class NoAvailableDecisionStrategy : ApplicationException
{
public NoAvailableDecisionStrategy(string message) : base(message)
{
}
}
@@ -0,0 +1,8 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class NoAvailableStrategy : ApplicationException
{
public NoAvailableStrategy(string message) : base(message)
{
}
}
@@ -0,0 +1,8 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class NotAuthorizedException : ApplicationException
{
public NotAuthorizedException(string message) : base(message)
{
}
}
@@ -0,0 +1,8 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class NotFoundException : ApplicationException
{
public NotFoundException(string message) : base(message)
{
}
}
@@ -0,0 +1,8 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class PayoutIneligibleException : ApplicationException
{
public PayoutIneligibleException(string message) : base(message)
{
}
}
@@ -0,0 +1,6 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class ServerErrorException : Exception
{
public ServerErrorException(): base("A server error occured. See associated logs.") { }
}
@@ -0,0 +1,9 @@
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
public class UnknownProductException : ApplicationException
{
public UnknownProductException() : base(
"Encountered a product string in an incoming activity Incentive Manager could not pars ")
{
}
}