﻿using System;

namespace Nutri.Patients.API.Services.Exceptions
{
    public enum ServiceExceptionType
    {
        ResourceNotFound,
        InvalidModel,
    }

    public class ServiceException: Exception
    {
        public Enum ExceptionType { get; private set; }

        public ServiceException(Enum type): base(type.ToString())
        {
            ExceptionType = type;
        }
    }
}
