36 lines
676 B
C#
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
|
|
}
|
|
}
|