-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better handling of http connection exceptions.
- Loading branch information
1 parent
0c81f45
commit c29ba46
Showing
6 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Linq; | ||
|
||
namespace Draft.Exceptions | ||
{ | ||
/// <summary> | ||
/// Represents an error with the underlying http client when attempting to connect to an etcd endpoint. | ||
/// </summary> | ||
public class HttpConnectionException : EtcdException | ||
{ | ||
|
||
/// <summary> | ||
/// Initializes a new <see cref="HttpConnectionException" /> instance. | ||
/// </summary> | ||
public HttpConnectionException() {} | ||
|
||
/// <summary> | ||
/// Initializes a new <see cref="HttpConnectionException" /> instance with a specified error message. | ||
/// </summary> | ||
public HttpConnectionException(string message) : base(message) {} | ||
|
||
/// <summary> | ||
/// Indicates that this exception is due to an underlying http client connection error. | ||
/// </summary> | ||
public override bool IsHttpConnection | ||
{ | ||
get { return true; } | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters