38 lines
No EOL
885 B
C#
38 lines
No EOL
885 B
C#
namespace DrinkRateAPI.Exceptions;
|
|
|
|
public abstract class DrinkRateException : Exception;
|
|
|
|
/// <summary>
|
|
/// 400 - Bad request
|
|
/// </summary>
|
|
public class BadRequestException : DrinkRateException;
|
|
|
|
/// <summary>
|
|
/// 401 - Unauthenticated
|
|
/// </summary>
|
|
public class UnauthenticatedException : DrinkRateException;
|
|
|
|
/// <summary>
|
|
/// 402 - Payment required
|
|
/// </summary>
|
|
public class PaymentRequiredException : DrinkRateException;
|
|
|
|
/// <summary>
|
|
/// 403 - Forbidden
|
|
/// </summary>
|
|
public class ForbiddenException : DrinkRateException;
|
|
|
|
/// <summary>
|
|
/// 404 - Not found
|
|
/// </summary>
|
|
public class NotFoundException : DrinkRateException;
|
|
|
|
/// <summary>
|
|
/// 418 - I'm a teapot
|
|
/// </summary>
|
|
public class IamATeapotException : DrinkRateException;
|
|
|
|
/// <summary>
|
|
/// 451 - Unavailable for lagal reasons
|
|
/// </summary>
|
|
public class UnavailableForLagalReasonsException : DrinkRateException; |