summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Messaging/ProtocolException.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-04-21 20:11:34 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2012-04-21 20:11:34 -0700
commit1b6d8c2a40a019b43b252102353170380872da45 (patch)
treefb6440ce98e45fe96eee5fb8d41c67187b70d577 /src/DotNetOpenAuth.Core/Messaging/ProtocolException.cs
parent08827a078f370a0e976102e792a16095dd501b8c (diff)
downloadDotNetOpenAuth-1b6d8c2a40a019b43b252102353170380872da45.zip
DotNetOpenAuth-1b6d8c2a40a019b43b252102353170380872da45.tar.gz
DotNetOpenAuth-1b6d8c2a40a019b43b252102353170380872da45.tar.bz2
Replaces ResourceServer.VerifyAccess with a better pattern for error handling.
Fixes #122
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/ProtocolException.cs')
-rw-r--r--src/DotNetOpenAuth.Core/Messaging/ProtocolException.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/ProtocolException.cs b/src/DotNetOpenAuth.Core/Messaging/ProtocolException.cs
index e26d15e..982e1c0 100644
--- a/src/DotNetOpenAuth.Core/Messaging/ProtocolException.cs
+++ b/src/DotNetOpenAuth.Core/Messaging/ProtocolException.cs
@@ -42,10 +42,10 @@ namespace DotNetOpenAuth.Messaging {
/// such that it can be sent as a protocol message response to a remote caller.
/// </summary>
/// <param name="message">The human-readable exception message.</param>
- /// <param name="faultedMessage">The message that was the cause of the exception. Must not be null.</param>
- protected internal ProtocolException(string message, IProtocolMessage faultedMessage)
- : base(message) {
- Requires.NotNull(faultedMessage, "faultedMessage");
+ /// <param name="faultedMessage">The message that was the cause of the exception. May be null.</param>
+ /// <param name="innerException">The inner exception to include.</param>
+ protected internal ProtocolException(string message, IProtocolMessage faultedMessage, Exception innerException = null)
+ : base(message, innerException) {
this.FaultedMessage = faultedMessage;
}