summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Assumes.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-04-28 19:53:51 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2012-04-28 19:59:55 -0700
commit01d8c73f818d30b20f86630d35d230b5168215d1 (patch)
tree1e40cde657224715575a9cea8df010bcde831238 /src/DotNetOpenAuth.Core/Assumes.cs
parent9c732b8f4dff008a696d24f0f2c5269c0dcec8c0 (diff)
downloadDotNetOpenAuth-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.cs8
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.")]