diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-04-28 19:53:51 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-04-28 19:59:55 -0700 |
commit | 01d8c73f818d30b20f86630d35d230b5168215d1 (patch) | |
tree | 1e40cde657224715575a9cea8df010bcde831238 /src/DotNetOpenAuth.Core/Assumes.cs | |
parent | 9c732b8f4dff008a696d24f0f2c5269c0dcec8c0 (diff) | |
download | DotNetOpenAuth-01d8c73f818d30b20f86630d35d230b5168215d1.zip DotNetOpenAuth-01d8c73f818d30b20f86630d35d230b5168215d1.tar.gz DotNetOpenAuth-01d8c73f818d30b20f86630d35d230b5168215d1.tar.bz2 |
Moved some JSON serialization logic to MessagingUtilities and added a unit test.
Diffstat (limited to 'src/DotNetOpenAuth.Core/Assumes.cs')
-rw-r--r-- | src/DotNetOpenAuth.Core/Assumes.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Core/Assumes.cs b/src/DotNetOpenAuth.Core/Assumes.cs index f29f09f..151fa2f 100644 --- a/src/DotNetOpenAuth.Core/Assumes.cs +++ b/src/DotNetOpenAuth.Core/Assumes.cs @@ -58,6 +58,14 @@ namespace DotNetOpenAuth { } /// <summary> + /// Throws an internal error exception. + /// </summary> + /// <returns>Nothing. This method always throws.</returns> + internal static Exception NotReachable() { + throw new InternalErrorException(); + } + + /// <summary> /// An internal error exception that should never be caught. /// </summary> [SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic", Justification = "This exception should never be caught.")] |