Skip to content

Commit

Permalink
Updated the protocol log help link for ProtocolExceptions
Browse files Browse the repository at this point in the history
Fixes #1800
  • Loading branch information
jstedfast committed Aug 21, 2024
1 parent 8edd67f commit ed09b8d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions MailKit/ProtocolException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ namespace MailKit {
#endif
public abstract class ProtocolException : Exception
{
const string ProtocolLogHelpLink = "https://github.com/jstedfast/MailKit/blob/master/FAQ.md#protocol-log";

#if SERIALIZABLE
/// <summary>
/// Initializes a new instance of the <see cref="MailKit.ProtocolException"/> class.
Expand All @@ -72,7 +74,7 @@ protected ProtocolException (SerializationInfo info, StreamingContext context) :
/// <param name="innerException">An inner exception.</param>
protected ProtocolException (string message, Exception innerException) : base (message, innerException)
{
HelpLink = "https://github.com/jstedfast/MailKit/blob/master/FAQ.md#ProtocolLog";
HelpLink = ProtocolLogHelpLink;
}

/// <summary>
Expand All @@ -84,7 +86,7 @@ protected ProtocolException (string message, Exception innerException) : base (m
/// <param name="message">The error message.</param>
protected ProtocolException (string message) : base (message)
{
HelpLink = "https://github.com/jstedfast/MailKit/blob/master/FAQ.md#ProtocolLog";
HelpLink = ProtocolLogHelpLink;
}

/// <summary>
Expand All @@ -95,7 +97,7 @@ protected ProtocolException (string message) : base (message)
/// </remarks>
protected ProtocolException ()
{
HelpLink = "https://github.com/jstedfast/MailKit/blob/master/FAQ.md#ProtocolLog";
HelpLink = ProtocolLogHelpLink;
}
}
}

0 comments on commit ed09b8d

Please sign in to comment.