-
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.
Merge pull request #240 from WildernessLabs/develop
RC2
- Loading branch information
Showing
41 changed files
with
1,203 additions
and
536 deletions.
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
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,78 @@ | ||
using System; | ||
|
||
namespace Meadow | ||
{ | ||
/// <summary> | ||
/// A general Network exception | ||
/// </summary> | ||
public class NetworkException : Exception | ||
{ | ||
public int StatusCode { get; } | ||
|
||
/// <summary> | ||
/// Creates a NetworkException instance | ||
/// </summary> | ||
public NetworkException() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Creates a NetworkException instance | ||
/// </summary> | ||
/// <param name="message"></param> | ||
/// <param name="statusCode"></param> | ||
public NetworkException(string message, int statusCode) | ||
: base(message) | ||
{ | ||
StatusCode = statusCode; | ||
} | ||
|
||
/// <summary> | ||
/// Creates a NetworkException instance | ||
/// </summary> | ||
/// <param name="statusCode"></param> | ||
public NetworkException(int statusCode) | ||
{ | ||
StatusCode = statusCode; | ||
} | ||
|
||
/// <summary> | ||
/// Creates a NetworkException instance | ||
/// </summary> | ||
/// <param name="message"></param> | ||
public NetworkException(string message) | ||
: base(message) | ||
{ | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// An exception indicating a requested network was not found | ||
/// </summary> | ||
public class NetworkNotFoundException : NetworkException | ||
{ | ||
/// <summary> | ||
/// Creates a NetworkNotFoundException instance | ||
/// </summary> | ||
/// <param name="message"></param> | ||
public NetworkNotFoundException(string message) | ||
: base(message) | ||
{ | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// An exception indicating a network authentication failure | ||
/// </summary> | ||
public class NetworkAuthenticationException : NetworkException | ||
{ | ||
/// <summary> | ||
/// Creates a NetworkAuthenticationException instance | ||
/// </summary> | ||
/// <param name="message"></param> | ||
public NetworkAuthenticationException(string message) | ||
: base(message) | ||
{ | ||
} | ||
} | ||
} |
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
Oops, something went wrong.