2024-04-18 01:44:37 +02:00
|
|
|
|
using System;
|
2025-02-16 13:23:45 +01:00
|
|
|
|
using Wino.Core.Domain.Entities.Shared;
|
2024-04-18 01:44:37 +02:00
|
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
|
namespace Wino.Core.Domain.Exceptions;
|
|
|
|
|
|
|
|
|
|
|
|
public class ImapClientPoolException : Exception
|
2024-04-18 01:44:37 +02:00
|
|
|
|
{
|
2025-02-16 13:23:45 +01:00
|
|
|
|
public ImapClientPoolException()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ImapClientPoolException(string message, CustomServerInformation customServerInformation, string protocolLog) : base(message)
|
|
|
|
|
|
{
|
|
|
|
|
|
CustomServerInformation = customServerInformation;
|
|
|
|
|
|
ProtocolLog = protocolLog;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ImapClientPoolException(string message, string protocolLog) : base(message)
|
|
|
|
|
|
{
|
|
|
|
|
|
ProtocolLog = protocolLog;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-03-01 16:53:05 +01:00
|
|
|
|
public ImapClientPoolException(Exception innerException, string protocolLog) : base(innerException.Message, innerException)
|
2024-04-18 01:44:37 +02:00
|
|
|
|
{
|
2025-02-16 11:54:23 +01:00
|
|
|
|
ProtocolLog = protocolLog;
|
2025-02-16 11:43:30 +01:00
|
|
|
|
}
|
2025-02-16 11:54:23 +01:00
|
|
|
|
|
2025-02-16 13:23:45 +01:00
|
|
|
|
public CustomServerInformation CustomServerInformation { get; }
|
2025-02-16 11:54:23 +01:00
|
|
|
|
public string ProtocolLog { get; }
|
2024-04-18 01:44:37 +02:00
|
|
|
|
}
|