summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--samples/OAuthClient/SampleWcf2.aspx.cs6
-rw-r--r--src/DotNetOpenAuth.Core/Messaging/ProtocolFaultResponseException.cs1
2 files changed, 4 insertions, 3 deletions
diff --git a/samples/OAuthClient/SampleWcf2.aspx.cs b/samples/OAuthClient/SampleWcf2.aspx.cs
index 7321ba5..06bbe9b 100644
--- a/samples/OAuthClient/SampleWcf2.aspx.cs
+++ b/samples/OAuthClient/SampleWcf2.aspx.cs
@@ -87,7 +87,7 @@
this.nameLabel.Text = this.CallService(client => client.GetName());
} catch (SecurityAccessDeniedException) {
this.nameLabel.Text = "Access denied!";
- } catch (MessageSecurityException ex) {
+ } catch (MessageSecurityException) {
this.nameLabel.Text = "Access denied!";
}
}
@@ -98,7 +98,7 @@
this.ageLabel.Text = age.HasValue ? age.Value.ToString(CultureInfo.CurrentCulture) : "not available";
} catch (SecurityAccessDeniedException) {
this.ageLabel.Text = "Access denied!";
- } catch (MessageSecurityException ex) {
+ } catch (MessageSecurityException) {
this.ageLabel.Text = "Access denied!";
}
}
@@ -109,7 +109,7 @@
this.favoriteSitesLabel.Text = string.Join(", ", favoriteSites);
} catch (SecurityAccessDeniedException) {
this.favoriteSitesLabel.Text = "Access denied!";
- } catch (MessageSecurityException ex) {
+ } catch (MessageSecurityException) {
this.favoriteSitesLabel.Text = "Access denied!";
}
}
diff --git a/src/DotNetOpenAuth.Core/Messaging/ProtocolFaultResponseException.cs b/src/DotNetOpenAuth.Core/Messaging/ProtocolFaultResponseException.cs
index f03ebdb..c2dc34e 100644
--- a/src/DotNetOpenAuth.Core/Messaging/ProtocolFaultResponseException.cs
+++ b/src/DotNetOpenAuth.Core/Messaging/ProtocolFaultResponseException.cs
@@ -60,6 +60,7 @@ namespace DotNetOpenAuth.Messaging {
/// <summary>
/// Creates the HTTP response to forward to the client to report the error.
/// </summary>
+ /// <returns>The HTTP response.</returns>
public OutgoingWebResponse CreateErrorResponse() {
var response = this.channel.PrepareResponse(this.ErrorResponseMessage);
return response;