aspnetcore/src/Microsoft.AspNet.Mvc.Core/Actions/AmbiguousActionException.cs

32 lines
781 B
C#

// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
#if DNX451
using System.Runtime.Serialization;
#endif
namespace Microsoft.AspNet.Mvc.Actions
{
/// <summary>
/// An exception which indicates multiple matches in action selection.
/// </summary>
#if DNX451
[Serializable]
#endif
public class AmbiguousActionException : InvalidOperationException
{
public AmbiguousActionException(string message)
: base(message)
{
}
#if DNX451
protected AmbiguousActionException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
#endif
}
}