dotnet-core_mail-server/MailServer/Exceptions/NotFoundException.cs

36 lines
676 B
C#
Raw Normal View History

2016-11-27 17:38:47 +00:00
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
}
}