PageRenderTime 48ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/src/MvcFutures/Mvc/AntiForgeryTokenValidationException.cs

https://bitbucket.org/markhneedham/aspnet-mvc
C# | 32 lines | 21 code | 5 blank | 6 comment | 0 complexity | 383410a73ac4d885e110b914f0af8b76 MD5 | raw file
  1. namespace Microsoft.Web.Mvc {
  2. using System;
  3. using System.Runtime.Serialization;
  4. using System.Web;
  5. [Serializable]
  6. [AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
  7. [AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
  8. public class AntiForgeryTokenValidationException : Exception {
  9. //
  10. // For guidelines regarding the creation of new exception types, see
  11. // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
  12. // and
  13. // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
  14. //
  15. public AntiForgeryTokenValidationException() {
  16. }
  17. public AntiForgeryTokenValidationException(string message)
  18. : base(message) {
  19. }
  20. public AntiForgeryTokenValidationException(string message, Exception inner)
  21. : base(message, inner) {
  22. }
  23. protected AntiForgeryTokenValidationException(SerializationInfo info, StreamingContext context)
  24. : base(info, context) {
  25. }
  26. }
  27. }