Cherry picks ValidateUmbracoFormRouteStringAttribute implementation and fixes up some logic

This commit is contained in:
Shannon
2019-07-16 23:03:26 +10:00
parent 2aaca865e7
commit d52420183e
12 changed files with 81 additions and 259 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.Net;
using System.Web;
namespace Umbraco.Web.Mvc
{
/// <summary>
/// Exception that occurs when an Umbraco form route string is invalid
/// </summary>
/// <seealso cref="System.Web.HttpException" />
[Serializable]
public sealed class HttpUmbracoFormRouteStringException : HttpException
{
/// <summary>
/// Initializes a new instance of the <see cref="HttpUmbracoFormRouteStringException" /> class.
/// </summary>
/// <param name="message">The error message displayed to the client when the exception is thrown.</param>
public HttpUmbracoFormRouteStringException(string message)
: base(message)
{ }
}
}