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

32 lines
793 B
C#

// Copyright (c) Microsoft Open Technologies, Inc. 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
{
/// <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
}
}