Adding
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Exceptions
|
||||
{
|
||||
public class DuplicateResourceException : Exception
|
||||
{
|
||||
public DuplicateResourceException(string resourceType) : base($"Duplicate Resources of type {resourceType} were found.") { }
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Exceptions
|
||||
{
|
||||
public class MaxItemException : Exception
|
||||
{
|
||||
public MaxItemException(int itemCount) : base("Too Many Items Were Produced Than Were Allowed.") {
|
||||
ItemCount = itemCount;
|
||||
}
|
||||
|
||||
public int ItemCount { get; set; }
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Exceptions
|
||||
{
|
||||
public class UnwantedStatusException : Exception
|
||||
{
|
||||
public UnwantedStatusException(int repoId, string accountNo) : base($"Account Number {accountNo} with Repossession ID {repoId} is in Cancelled or Redeemed status") { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user