2024-06-17 02:16:06 +02:00
|
|
|
|
using System;
|
2024-07-21 05:45:02 +02:00
|
|
|
|
using Wino.Domain.Models.AutoDiscovery;
|
2024-06-17 02:16:06 +02:00
|
|
|
|
|
2024-07-21 05:45:02 +02:00
|
|
|
|
namespace Wino.Domain.Exceptions
|
2024-06-17 02:16:06 +02:00
|
|
|
|
{
|
|
|
|
|
|
public class ImapConnectionFailedPackage
|
|
|
|
|
|
{
|
|
|
|
|
|
public ImapConnectionFailedPackage(Exception error, string protocolLog, AutoDiscoverySettings settings)
|
|
|
|
|
|
{
|
|
|
|
|
|
Error = error;
|
|
|
|
|
|
ProtocolLog = protocolLog;
|
|
|
|
|
|
Settings = settings;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public AutoDiscoverySettings Settings { get; }
|
|
|
|
|
|
public Exception Error { get; }
|
|
|
|
|
|
public string ProtocolLog { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public string GetErrorMessage() => Error.InnerException == null ? Error.Message : Error.InnerException.Message;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|