Adding
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class BadActivityStateChangeException : ApplicationException
|
||||
{
|
||||
public BadActivityStateChangeException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class BadActivityTransferActionException : ApplicationException
|
||||
{
|
||||
public BadActivityTransferActionException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class BadDepartmentAssignmentException : ApplicationException
|
||||
{
|
||||
public BadDepartmentAssignmentException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class BadUserAssignmentException : ApplicationException
|
||||
{
|
||||
public BadUserAssignmentException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class CommissionExistsException : ApplicationException
|
||||
{
|
||||
public CommissionExistsException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class DataIntegrityException : ApplicationException
|
||||
{
|
||||
public DataIntegrityException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class DataIntegrityFailureException : ApplicationException
|
||||
{
|
||||
public DataIntegrityFailureException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class DeadActivityException: ApplicationException
|
||||
{
|
||||
public DeadActivityException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class DuplicateDataException : ApplicationException
|
||||
{
|
||||
public DuplicateDataException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class FailedParsingHeadersException : System.Exception
|
||||
{
|
||||
public FailedParsingHeadersException() : base("Missing Required Headers") {}
|
||||
}
|
||||
+13
@@ -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.");
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class NoAvailableDecisionStrategy : ApplicationException
|
||||
{
|
||||
public NoAvailableDecisionStrategy(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class NoAvailableStrategy : ApplicationException
|
||||
{
|
||||
public NoAvailableStrategy(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class NotAuthorizedException : ApplicationException
|
||||
{
|
||||
public NotAuthorizedException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class NotFoundException : ApplicationException
|
||||
{
|
||||
public NotFoundException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Exceptions;
|
||||
|
||||
public class PayoutIneligibleException : ApplicationException
|
||||
{
|
||||
public PayoutIneligibleException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
+6
@@ -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.") { }
|
||||
}
|
||||
+9
@@ -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 ")
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user