Lots of additions and changes

This commit is contained in:
2021-10-30 11:20:36 -04:00
parent 3051b63e44
commit 9cf11e982f
29 changed files with 557 additions and 46 deletions

View File

@@ -0,0 +1,25 @@
using System;
using TOOHUCardAPI.Data.Services;
using TOOHUCardAPI.DTO;
namespace TOOHUCardAPI.Data
{
public abstract class TooHooException : Exception
{
public abstract AbstractResponse response { get; }
}
public class InvalidUserException : TooHooException
{
public override AbstractResponse response => new InvalidUserResponse();
}
public class InsufficientPointsException : TooHooException
{
public override AbstractResponse response => new InsufficientPointsResponse();
}
public class NotFirstWinException : TooHooException
{
public override AbstractResponse response => new NotFirstWinResponse();
}
}