-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PlatformNotSupportedException exception (#174)
***NO_CI***
- Loading branch information
1 parent
87c04c9
commit b4c28a9
Showing
4 changed files
with
25 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
20 changes: 20 additions & 0 deletions
20
nanoFramework.CoreLibrary/System/PlatformNotSupportedException.cs
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,20 @@ | ||
// | ||
// Copyright (c) .NET Foundation and Contributors | ||
// Portions Copyright (c) Microsoft Corporation. All rights reserved. | ||
// See LICENSE file in the project root for full license information. | ||
// | ||
namespace System | ||
{ | ||
/// <summary> | ||
/// The exception that is thrown when a feature does not run on a particular platform. | ||
/// </summary> | ||
[Serializable] | ||
public class PlatformNotSupportedException : NotSupportedException | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the ArgumentNullException class. | ||
/// </summary> | ||
public PlatformNotSupportedException() | ||
{ } | ||
} | ||
} |