Skip to content

Commit ed09b8d

Browse files
committed
Updated the protocol log help link for ProtocolExceptions
Fixes #1800
1 parent 8edd67f commit ed09b8d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

MailKit/ProtocolException.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ namespace MailKit {
4646
#endif
4747
public abstract class ProtocolException : Exception
4848
{
49+
const string ProtocolLogHelpLink = "https://github.com/jstedfast/MailKit/blob/master/FAQ.md#protocol-log";
50+
4951
#if SERIALIZABLE
5052
/// <summary>
5153
/// Initializes a new instance of the <see cref="MailKit.ProtocolException"/> class.
@@ -72,7 +74,7 @@ protected ProtocolException (SerializationInfo info, StreamingContext context) :
7274
/// <param name="innerException">An inner exception.</param>
7375
protected ProtocolException (string message, Exception innerException) : base (message, innerException)
7476
{
75-
HelpLink = "https://github.com/jstedfast/MailKit/blob/master/FAQ.md#ProtocolLog";
77+
HelpLink = ProtocolLogHelpLink;
7678
}
7779

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

9092
/// <summary>
@@ -95,7 +97,7 @@ protected ProtocolException (string message) : base (message)
9597
/// </remarks>
9698
protected ProtocolException ()
9799
{
98-
HelpLink = "https://github.com/jstedfast/MailKit/blob/master/FAQ.md#ProtocolLog";
100+
HelpLink = ProtocolLogHelpLink;
99101
}
100102
}
101103
}

0 commit comments

Comments
 (0)