25 lines
689 B
C#
25 lines
689 B
C#
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();
|
|
}
|
|
} |