Folder structure reconstruction

This commit is contained in:
Fabian Stamm
2016-12-09 15:41:35 +01:00
parent df48102215
commit c4c32efb04
98 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace SMTPServer.Exceptions
{
class NoMailsInQueueException : Exception
{
public NoMailsInQueueException() : base()
{
}
public NoMailsInQueueException(string message) : base(message)
{
}
public NoMailsInQueueException(string message, Exception inner) : base(message, inner)
{
}
}
}

View File

@ -0,0 +1,35 @@
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
}
}

View File

@ -0,0 +1,22 @@
using System;
namespace SMTPServer.Exceptions
{
public class PortUsedException : Exception
{
public PortUsedException() : base()
{
}
public PortUsedException(string message) : base(message)
{
}
public PortUsedException(string message, Exception inner) : base(message, inner)
{
}
}
}