dotnet-core_mail-server/MailServer/Exceptions/NotFoundException.cs
2016-12-09 15:41:35 +01:00

36 lines
676 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace MailServer.Exceptions
{
class NotFoundException : Exception
{
public Type Type { get; set; }
public NotFoundException(Type type) : base()
{
Type = type;
}
public NotFoundException(string message, Type type) : base(message)
{
Type = type;
}
public NotFoundException(string message, Exception inner, Type type) : base(message, inner)
{
Type = type;
}
}
public enum Type
{
DOMAIN,
ACCOUNT,
ALIAS,
MAIL,
FOLDER
}
}