Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / mscorlib / system / reflection / ambiguousmatchexception.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 ////////////////////////////////////////////////////////////////////////////////
7 ////////////////////////////////////////////////////////////////////////////////
8 //
9 // AmbiguousMatchException is thrown when binding to a method results in more
10 // 
11 // <OWNER>Microsoft</OWNER>
12 //    than one method matching the binding criteria.  This exception is thrown in
13 //    general when something is Ambiguous.
14 //
15 //  
16 //  
17 //
18 namespace System.Reflection {
19     using System;
20     using SystemException = System.SystemException;
21     using System.Runtime.Serialization;
22     [Serializable]
23 [System.Runtime.InteropServices.ComVisible(true)]
24     public sealed class AmbiguousMatchException : SystemException
25     {
26         
27         public AmbiguousMatchException() 
28             : base(Environment.GetResourceString("RFLCT.Ambiguous")) {
29             SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
30         }
31     
32         public AmbiguousMatchException(String message) : base(message) {
33             SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
34         }
35         
36         public AmbiguousMatchException(String message, Exception inner)  : base(message, inner) {
37             SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
38         }
39
40         internal AmbiguousMatchException(SerializationInfo info, StreamingContext context) : base(info, context) {
41         }
42
43     }
44 }